Added minus sign to allow negative numbers in inline dicts

This commit is contained in:
Samuel Vasko 2017-01-02 15:41:41 +00:00
parent ef729b0658
commit 05224ed33f
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ def _load_inline_object(line, currentlevel, multikey=False, multibackslash=False
_, value = candidate_group.split('=', 1)
value = value.strip()
if (value[0] == value[-1] and value[0] in ('"', "'")) or \
value[0] in '0123456789' or \
value[0] in '-0123456789' or \
value in ('true', 'false') or \
value[0] == "[" and value[-1] == "]":
groups.append(candidate_group)