]> granicus.if.org Git - python/commitdiff
Add a space to make json doc a bit more readable
authorÉric Araujo <merwok@netwok.org>
Thu, 21 Apr 2011 00:37:41 +0000 (02:37 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 21 Apr 2011 00:37:41 +0000 (02:37 +0200)
Doc/library/json.rst
Lib/json/__init__.py

index 6bb48e81ef511488802f6d0d8951b1e01c7ad2cb..48acaf19d6fdc4387dd2636c70350e954e086ebc 100644 (file)
@@ -34,7 +34,7 @@ Encoding basic Python object hierarchies::
 Compact encoding::
 
     >>> import json
-    >>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
+    >>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
     '[1,2,3,{"4":5,"6":7}]'
 
 Pretty printing::
index a746f9cf9c9eb7e28526fd9b67ea748b7a643d69..6d88931dcbdce308adbf9e4894d1e64f51db168c 100644 (file)
@@ -31,7 +31,7 @@ Encoding basic Python object hierarchies::
 Compact encoding::
 
     >>> import json
-    >>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
+    >>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
     '[1,2,3,{"4":5,"6":7}]'
 
 Pretty printing::