From 16b63cdb118138f8639b6f005d92f2136c815a1e Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Tue, 26 Jun 2012 07:28:32 +0400 Subject: Error messages changed to match proposal for Python 3.3.1 --- index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.rst') 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 -- cgit v1.2.1