# HG changeset patch # User Franz Glasner # Date 1522876657 -7200 # Node ID df60417d7665c82dc627bc709e9451791ae9a08b # Parent 95ad65c69561c59f28bdec657cb40fed0c118093 The JSON scanner allows only decimal integers diff -r 95ad65c69561 -r df60417d7665 configmix/json.py --- a/configmix/json.py Wed Apr 04 20:54:32 2018 +0200 +++ b/configmix/json.py Wed Apr 04 23:17:37 2018 +0200 @@ -40,10 +40,12 @@ .. todo:: Allow comments in JSON files - .. todo:: Allow all Python integer literals as numbers - """ with io.open(filename, mode="rt", encoding=encoding) as jsfp: + # + # The scanner (not to be changed yet) does only recognize decimal + # integers yet. + # kwds = { "parse_int": lambda s: int(s, 0), "strict": False