summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-28 21:54:24 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-28 21:54:24 (GMT)
commit946faa39e37f51f3461b6ed2b9ce1e19cb258382 (patch)
tree3473fe001f6745ad02452cd6522578b21700fbb3 /Doc/library
parent4ab5733685ae9ccea9709c38190e42c3b94fa757 (diff)
downloadcpython-946faa39e37f51f3461b6ed2b9ce1e19cb258382.zip
cpython-946faa39e37f51f3461b6ed2b9ce1e19cb258382.tar.gz
cpython-946faa39e37f51f3461b6ed2b9ce1e19cb258382.tar.bz2
Using "-m module" is easier to read and understand than "-mmodule".
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/json.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 5d97ee8..b495b49 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -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