summaryrefslogtreecommitdiffstats
path: root/module/lib/simplejson
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 15:53:29 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 20:23:43 +0200
commitb8942672378fccc7d557dfc2e40a4d90aecf7a0d (patch)
tree1d4a4cd78988b0ac3c18fcad8e4f3791b11f3f27 /module/lib/simplejson
parent[Lib] Update bottle.py to version 0.12.7 (diff)
downloadpyload-b8942672378fccc7d557dfc2e40a4d90aecf7a0d.tar.xz
[Lib] Revert libraries to original status (remove all cosmetics optimizations)
Diffstat (limited to 'module/lib/simplejson')
-rw-r--r--module/lib/simplejson/__init__.py8
-rw-r--r--module/lib/simplejson/encoder.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/module/lib/simplejson/__init__.py b/module/lib/simplejson/__init__.py
index 368d4202b..ef5c0db48 100644
--- a/module/lib/simplejson/__init__.py
+++ b/module/lib/simplejson/__init__.py
@@ -31,8 +31,8 @@ Encoding basic Python object hierarchies::
Compact encoding::
>>> import simplejson as json
- >>> json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',',':'))
- '[1, 2, 3, {"4": 5, "6": 7}]'
+ >>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
+ '[1,2,3,{"4":5,"6":7}]'
Pretty printing::
@@ -189,7 +189,7 @@ def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True,
If *namedtuple_as_object* is true (default: ``True``),
:class:`tuple` subclasses with ``_asdict()`` methods will be encoded
as JSON objects.
-
+
If *tuple_as_array* is true (default: ``True``),
:class:`tuple` (and subclasses) will be encoded as JSON arrays.
@@ -268,7 +268,7 @@ def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
If *namedtuple_as_object* is true (default: ``True``),
:class:`tuple` subclasses with ``_asdict()`` methods will be encoded
as JSON objects.
-
+
If *tuple_as_array* is true (default: ``True``),
:class:`tuple` (and subclasses) will be encoded as JSON arrays.
diff --git a/module/lib/simplejson/encoder.py b/module/lib/simplejson/encoder.py
index 5560c55e6..5ec7440f1 100644
--- a/module/lib/simplejson/encoder.py
+++ b/module/lib/simplejson/encoder.py
@@ -157,7 +157,7 @@ class JSONEncoder(object):
If namedtuple_as_object is true (the default), tuple subclasses with
``_asdict()`` methods will be encoded as JSON objects.
-
+
If tuple_as_array is true (the default), tuple (and subclasses) will
be encoded as JSON arrays.
"""