]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-21063: Improve module synopsis for distutils (GH-17363)
authorSanchit Khurana <54467174+GeniusLearner@users.noreply.github.com>
Mon, 25 Nov 2019 22:17:59 +0000 (03:47 +0530)
committerBrett Cannon <54418+brettcannon@users.noreply.github.com>
Mon, 25 Nov 2019 22:17:59 +0000 (14:17 -0800)
Doc/distutils/apiref.rst
Doc/library/2to3.rst
Doc/library/linecache.rst
Doc/library/statistics.rst
Doc/library/zipimport.rst

index a42d2d3559f2b27b962abe72716461dc92c118ff..80136b8a6bcdd804e84451084c1bda6c7da3bba8 100644 (file)
@@ -1545,7 +1545,7 @@ Python's own build procedures.
 =================================================
 
 .. module:: distutils.text_file
-   :synopsis: provides the TextFile class, a simple interface to text files
+   :synopsis: Provides the TextFile class, a simple interface to text files
 
 
 This module provides the :class:`TextFile` class, which gives an interface  to
@@ -1684,7 +1684,7 @@ lines, and joining lines with backslashes.
 ===================================================
 
 .. module:: distutils.version
-   :synopsis: implements classes that represent module version numbers.
+   :synopsis: Implements classes that represent module version numbers.
 
 
 .. % todo
@@ -1699,7 +1699,7 @@ lines, and joining lines with backslashes.
 ===================================================================
 
 .. module:: distutils.cmd
-   :synopsis: This module provides the abstract base class Command. This class
+   :synopsis: Provides the abstract base class :class:`~distutils.cmd.Command`. This class
               is subclassed by the modules in the distutils.command subpackage.
 
 
@@ -1792,7 +1792,7 @@ Subclasses of :class:`Command` must define the following methods.
 ==========================================================
 
 .. module:: distutils.command
-   :synopsis: This subpackage contains one module for each standard Distutils command.
+   :synopsis: Contains one module for each standard Distutils command.
 
 
 .. % \subsubsection{Individual Distutils commands}
@@ -2039,7 +2039,7 @@ This is described in more detail in :pep:`301`.
 ===================================================================
 
 .. module:: distutils.command.check
-   :synopsis: Check the metadata of a package
+   :synopsis: Check the meta-data of a package
 
 
 The ``check`` command performs some tests on the meta-data of a package.
index fa4b0a9645531c4792d0116a226cd9ea13b8f83a..c3ff3e607e7978121403ed05e0a910e6c0f0d597 100644 (file)
@@ -456,7 +456,7 @@ and off individually.  They are described here in more detail.
 -------------------------------
 
 .. module:: lib2to3
-   :synopsis: the 2to3 library
+   :synopsis: The 2to3 library
 
 .. moduleauthor:: Guido van Rossum
 .. moduleauthor:: Collin Winter
index 9278fc0641fca841b98bfa03192d6e6a24783dc8..dd9f4ee45ba82eba0e8cb6b57302f2feaf3ab045 100644 (file)
@@ -2,7 +2,7 @@
 ================================================
 
 .. module:: linecache
-   :synopsis: This module provides random access to individual lines from text files.
+   :synopsis: Provides random access to individual lines from text files.
 
 .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
 
index a790ed81a5607e002bb299b3056c877f4055fe03..4c7239c1895fbfe32bd694b4a4e1beaac20cd7b4 100644 (file)
@@ -2,7 +2,7 @@
 =======================================================
 
 .. module:: statistics
-   :synopsis: mathematical statistics functions
+   :synopsis: Mathematical statistics functions
 
 .. moduleauthor:: Steven D'Aprano <steve+python@pearwood.info>
 .. sectionauthor:: Steven D'Aprano <steve+python@pearwood.info>
index 2138697ff064157e04429afc635a10b28b781fe5..8ac3fb16bdb90d1eb7675d9ea84d3e1cde801d9d 100644 (file)
@@ -2,7 +2,7 @@
 =====================================================
 
 .. module:: zipimport
-   :synopsis: support for importing Python modules from ZIP archives.
+   :synopsis: Support for importing Python modules from ZIP archives.
 
 .. moduleauthor:: Just van Rossum <just@letterror.com>