diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-09-30 16:57:47 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-09-30 16:57:47 -0400 |
| commit | 2b52ceb718b55dce038db24d177715ae4281d065 (patch) | |
| tree | 15225bdb5446d34dd9744b15d98ea48f59c94bcb | |
| parent | Revert PR #395 (diff) | |
| download | pokeyellow-2b52ceb718b55dce038db24d177715ae4281d065.tar.gz pokeyellow-2b52ceb718b55dce038db24d177715ae4281d065.tar.xz pokeyellow-2b52ceb718b55dce038db24d177715ae4281d065.zip | |
`startswith` works with a tuple
| -rwxr-xr-x | tools/free_space.py | 2 |
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}' |
