changeset 128:95ad65c69561

FIX: todo comment: allow **numbers** -- not strings
author Franz Glasner <hg@dom66.de>
date Wed, 04 Apr 2018 20:54:32 +0200
parents 5b62d2c0e5a8
children df60417d7665
files configmix/json.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: