]> granicus.if.org Git - python/commitdiff
Fix highlight and spacing in json example.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 14 Apr 2012 03:02:18 +0000 (21:02 -0600)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 14 Apr 2012 03:02:18 +0000 (21:02 -0600)
Doc/library/json.rst

index f65670088776384335b9b777ad08ee0fe4b75e9a..c2ad6e9a837e91f40f0d62c251dc082d0da0d7d1 100644 (file)
@@ -90,7 +90,7 @@ Extending :class:`JSONEncoder`::
     ['[2.0', ', 1.0', ']']
 
 
-.. highlight:: none
+.. highlight:: bash
 
 Using json.tool from the shell to validate and pretty-print::
 
@@ -98,10 +98,10 @@ Using json.tool from the shell to validate and pretty-print::
     {
         "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::