From 946faa39e37f51f3461b6ed2b9ce1e19cb258382 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 28 Oct 2014 22:54:24 +0100 Subject: Using "-m module" is easier to read and understand than "-mmodule". --- Doc/library/json.rst | 4 ++-- 1 file 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 -- cgit v0.12