diff options
Diffstat (limited to 'module/lib/simplejson')
-rw-r--r-- | module/lib/simplejson/__init__.py | 2 | ||||
-rw-r--r-- | module/lib/simplejson/encoder.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/module/lib/simplejson/__init__.py b/module/lib/simplejson/__init__.py index c36be23c0..210b957a9 100644 --- a/module/lib/simplejson/__init__.py +++ b/module/lib/simplejson/__init__.py @@ -97,7 +97,7 @@ Using simplejson.tool from the shell to validate and pretty-print:: $ echo '{ 1.2:3.4}' | python -m simplejson.tool Expecting property name: line 1 column 2 (char 2) """ -__version__ = '2.1.3' +__version__ = '2.1.6' __all__ = [ 'dump', 'dumps', 'load', 'loads', 'JSONDecoder', 'JSONDecodeError', 'JSONEncoder', diff --git a/module/lib/simplejson/encoder.py b/module/lib/simplejson/encoder.py index 468d1bd82..f43f6f430 100644 --- a/module/lib/simplejson/encoder.py +++ b/module/lib/simplejson/encoder.py @@ -165,6 +165,8 @@ class JSONEncoder(object): self.indent = indent if separators is not None: self.item_separator, self.key_separator = separators + elif indent is not None: + self.item_separator = ',' if default is not None: self.default = default self.encoding = encoding |