changeset 129:df60417d7665

The JSON scanner allows only decimal integers
author Franz Glasner <hg@dom66.de>
date Wed, 04 Apr 2018 23:17:37 +0200
parents 95ad65c69561
children b11af3ded7c1
files configmix/json.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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