]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.6] bpo-35167: Specify program for json.tool command line options. (GH-10332) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 5 Nov 2018 17:51:36 +0000 (09:51 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 5 Nov 2018 17:51:36 +0000 (19:51 +0200)
(cherry picked from commit 083a7a172b8c8888252d72031f21dcfea3c0d73f)
(cherry picked from commit 6ad277b2592cfac0f138e9adca4374dd1f354bdf)

Doc/library/json.rst

index aa9da91303086334a5ef948b435431b6a5cba22e..98ca86e4b9af532bd468da7e91f6877b8554ad22 100644 (file)
@@ -652,7 +652,9 @@ when serializing Python :class:`int` values of extremely large magnitude, or
 when serializing instances of "exotic" numerical types such as
 :class:`decimal.Decimal`.
 
+
 .. _json-commandline:
+.. program:: json.tool
 
 Command Line Interface
 ----------------------
@@ -684,6 +686,7 @@ specified, :attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:
    :option:`--sort-keys` option to sort the output of dictionaries
    alphabetically by key.
 
+
 Command line options
 ^^^^^^^^^^^^^^^^^^^^