Parse all numbers as numbers
Typo prevented integers starting with 2 in affected places (command-line --renderer-arg parsing and POWERLINE_…_OVERRIDES parsing) from being parsed as integers.
This commit is contained in:
parent
d6e7cbfaac
commit
524fc317ad
|
@ -25,7 +25,7 @@ def parse_value(s):
|
|||
'''
|
||||
if not s:
|
||||
return REMOVE_THIS_KEY
|
||||
elif s[0] in '"{[0193456789-' or s in ('null', 'true', 'false'):
|
||||
elif s[0] in '"{[0123456789-' or s in ('null', 'true', 'false'):
|
||||
return json.loads(s)
|
||||
else:
|
||||
return s
|
||||
|
|
Loading…
Reference in New Issue