[Python-checkins] cpython (merge 3.2 -> default): Merge highlight and spacing fixes in json example with 3.2.
ezio.melotti
python-checkins at python.org
Sat Apr 14 05:05:48 CEST 2012
http://hg.python.org/cpython/rev/60f7719c0415
changeset: 76300:60f7719c0415
parent: 76298:957e2c71beef
parent: 76299:5fe73997523a
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Fri Apr 13 21:05:36 2012 -0600
summary:
Merge highlight and spacing fixes in json example with 3.2.
files:
Doc/library/json.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -90,7 +90,7 @@
['[2.0', ', 1.0', ']']
-.. highlight:: none
+.. highlight:: bash
Using json.tool from the shell to validate and pretty-print::
@@ -98,10 +98,10 @@
{
"json": "obj"
}
- $ echo '{ 1.2:3.4}' | python -mjson.tool
- Expecting property name: line 1 column 2 (char 2)
+ $ echo '{1.2:3.4}' | python -mjson.tool
+ Expecting property name: line 1 column 1 (char 1)
-.. highlight:: python
+.. highlight:: python3
.. note::
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list