aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2022-09-30 16:57:47 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2022-09-30 16:57:47 -0400
commit2b52ceb718b55dce038db24d177715ae4281d065 (patch)
tree15225bdb5446d34dd9744b15d98ea48f59c94bcb /tools
parentRevert PR #395 (diff)
downloadpokeyellow-2b52ceb718b55dce038db24d177715ae4281d065.tar.gz
pokeyellow-2b52ceb718b55dce038db24d177715ae4281d065.tar.xz
pokeyellow-2b52ceb718b55dce038db24d177715ae4281d065.zip
`startswith` works with a tuple
Diffstat (limited to 'tools')
-rwxr-xr-xtools/free_space.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/free_space.py b/tools/free_space.py
index 3bf7433e..553e1352 100755
--- a/tools/free_space.py
+++ b/tools/free_space.py
@@ -28,7 +28,7 @@ def main():
if print_bank not in {'all', 'none'}:
try:
print_bank = (int(print_bank[2:], 16)
- if print_bank.startswith('0x') or print_bank.startswith('0X')
+ if print_bank.startswith(('0x', '0X'))
else int(print_bank))
except ValueError:
error = f'Error: invalid BANK: {print_bank}'