fixed hex check in parse number code

float_support
Anton Lydike 4 years ago
parent d8d53da774
commit c6b18dd152

@ -14,7 +14,7 @@ def parse_numeric_argument(arg: str):
""" """
parse hex or int strings parse hex or int strings
""" """
if arg.startswith('0x') or arg.startswith('0X'): if '0x' in arg or '0X' in arg:
return int(arg, 16) return int(arg, 16)
return int(arg) return int(arg)

Loading…
Cancel
Save