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/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/map.py') diff --git a/tools/map.py b/tools/map.py index 034a4b5..825f307 100755 --- a/tools/map.py +++ b/tools/map.py @@ -104,7 +104,7 @@ def main(): # end of entity list out.append(0xFF) - tmp = args.output.rstrip(".o") + tmp = args.output.removesuffix(".o") with open(tmp, "wb") as fd: fd.write(bytearray(out)) fd.flush() -- cgit v1.2.3