[Python-checkins] cpython (3.1): Add a space to make json doc a bit more readable
eric.araujo
python-checkins at python.org
Wed Apr 27 16:38:21 CEST 2011
http://hg.python.org/cpython/rev/ee48b38a93bc
changeset: 69610:ee48b38a93bc
branch: 3.1
parent: 69603:acaec4d48023
user: Éric Araujo <merwok at netwok.org>
date: Thu Apr 21 02:37:41 2011 +0200
summary:
Add a space to make json doc a bit more readable
files:
Doc/library/json.rst | 2 +-
Lib/json/__init__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -34,7 +34,7 @@
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::
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py
--- a/Lib/json/__init__.py
+++ b/Lib/json/__init__.py
@@ -31,7 +31,7 @@
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::
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list