summaryrefslogtreecommitdiff
path: root/index.rst
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2012-06-26 07:28:32 +0400
committerBob Ippolito <bob@redivi.com>2012-06-26 07:28:32 +0400
commit16b63cdb118138f8639b6f005d92f2136c815a1e (patch)
treeee35b9b4c4be7710778d56fe831510f4941565e4 /index.rst
parente1919939c141bb55c18c67cf576bdb3c2fc0ab18 (diff)
downloadsimplejson-16b63cdb118138f8639b6f005d92f2136c815a1e.tar.gz
Error messages changed to match proposal for Python 3.3.1
Diffstat (limited to 'index.rst')
-rw-r--r--index.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.rst b/index.rst
index c63f57f..cb9a0ab 100644
--- a/index.rst
+++ b/index.rst
@@ -41,7 +41,7 @@ Encoding basic Python object hierarchies::
Compact encoding::
>>> import simplejson as 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::
@@ -116,7 +116,7 @@ Using :mod:`simplejson.tool` from the shell to validate and pretty-print::
"json": "obj"
}
$ echo '{ 1.2:3.4}' | python -m simplejson.tool
- Expecting property name: line 1 column 2 (char 2)
+ Expecting property name enclosed in double quotes: line 1 column 2 (char 2)
.. highlight:: python