From b33c3e948b72f71176cd57afd2085835bab64ff7 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 13 Jul 2023 22:01:46 +0100 Subject: Use removesuffix --- tools/raw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/raw.py') diff --git a/tools/raw.py b/tools/raw.py index 755a64c..35a8dec 100755 --- a/tools/raw.py +++ b/tools/raw.py @@ -27,7 +27,7 @@ def main(): with open(args.file, "rb") as fd: data = fd.read() - tmp = args.output.rstrip(".o") + tmp = args.output.removesuffix(".o") with open(tmp, "wb") as fd: fd.write(bytearray(data)) fd.flush() -- cgit v1.2.3