shithub: pokered

Download patch

ref: 2b52ceb718b55dce038db24d177715ae4281d065
parent: 22859c4bb70dba17994c9b47b07f657ea082875d
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Fri Sep 30 12:57:47 EDT 2022

`startswith` works with a tuple

--- a/tools/free_space.py
+++ b/tools/free_space.py
@@ -28,7 +28,7 @@
 	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}'