Using "-m module" is easier to read and understand than "-mmodule".

This commit is contained in:
Georg Brandl 2014-10-28 22:54:24 +01:00
parent 4ab5733685
commit 946faa39e3
1 changed files with 2 additions and 2 deletions

View 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