]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Using "-m module" is easier to read and understand than "-mmodule".
authorGeorg Brandl <georg@python.org>
Tue, 28 Oct 2014 21:54:24 +0000 (22:54 +0100)
committerGeorg Brandl <georg@python.org>
Tue, 28 Oct 2014 21:54:24 +0000 (22:54 +0100)
Doc/library/json.rst

index 5d97ee88fc49ceb0deee9717f8210f0c140d0dcc..b495b496809532a0406bc7f048695651075f6c2f 100644 (file)
@@ -97,11 +97,11 @@ Extending :class:`JSONEncoder`::
 
 Using json.tool from the shell to validate and pretty-print::
 
-    $ echo '{"json":"obj"}' | python -mjson.tool
+    $ echo '{"json":"obj"}' | python -m json.tool
     {
         "json": "obj"
     }
-    $ echo '{1.2:3.4}' | python -mjson.tool
+    $ echo '{1.2:3.4}' | python -m json.tool
     Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
 
 .. highlight:: python3