aboutsummaryrefslogtreecommitdiff
path: root/tools/pngpal.py
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-13 22:01:46 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-13 22:01:46 +0100
commitb33c3e948b72f71176cd57afd2085835bab64ff7 (patch)
treeac08889ff6221afb23171dd5654b340799f84d4f /tools/pngpal.py
parent908dac2677fc404dd198fe18f10f13c0a21cf86c (diff)
downloadgold-mine-run-b33c3e948b72f71176cd57afd2085835bab64ff7.tar.gz
gold-mine-run-b33c3e948b72f71176cd57afd2085835bab64ff7.zip
Use removesuffix
Diffstat (limited to 'tools/pngpal.py')
-rwxr-xr-xtools/pngpal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pngpal.py b/tools/pngpal.py
index 5e08373..c4d43d6 100755
--- a/tools/pngpal.py
+++ b/tools/pngpal.py
@@ -37,7 +37,7 @@ def main():
if not palette:
parser.error("failed to extract the palette")
- tmp = args.output.rstrip(".o")
+ tmp = args.output.removesuffix(".o")
with open(tmp, "wb") as fd:
fd.write(bytearray(palette))
fd.flush()