# HG changeset patch # User Franz Glasner # Date 1522868072 -7200 # Node ID 95ad65c69561c59f28bdec657cb40fed0c118093 # Parent 5b62d2c0e5a880873aba23af8db93e2c76672f95 FIX: todo comment: allow **numbers** -- not strings diff -r 5b62d2c0e5a8 -r 95ad65c69561 configmix/json.py --- a/configmix/json.py Wed Apr 04 20:53:06 2018 +0200 +++ b/configmix/json.py Wed Apr 04 20:54:32 2018 +0200 @@ -40,12 +40,12 @@ .. todo:: Allow comments in JSON files - .. todo:: Allow all Python string literals + .. todo:: Allow all Python integer literals as numbers """ with io.open(filename, mode="rt", encoding=encoding) as jsfp: kwds = { - "parse_int": lambda n: int(n, 0), + "parse_int": lambda s: int(s, 0), "strict": False } if _with_object_pairs_hook: