From: Georg Brandl Date: Tue, 28 Oct 2014 21:54:24 +0000 (+0100) Subject: Using "-m module" is easier to read and understand than "-mmodule". X-Git-Tag: v3.4.3rc1~423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=946faa39e37f51f3461b6ed2b9ce1e19cb258382;p=thirdparty%2FPython%2Fcpython.git Using "-m module" is easier to read and understand than "-mmodule". --- diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 5d97ee88fc49..b495b4968095 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