aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
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}'