]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix comma location in various places (GH-19233)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Mar 2020 21:33:31 +0000 (14:33 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Mar 2020 21:33:31 +0000 (14:33 -0700)
(cherry picked from commit c49016e67c3255b37599b354a8d7995d40663991)

Co-authored-by: Mathieu Dupuy <deronnax@users.noreply.github.com>
Doc/install/index.rst
Doc/library/mailcap.rst
Doc/library/pprint.rst
Doc/library/ssl.rst
Doc/library/textwrap.rst
Doc/library/tokenize.rst
Doc/reference/datamodel.rst
Doc/reference/expressions.rst

index f6a8cd6833a9ad18908b6cdca1b17de7d3440563..b82c1b23f11f0d8c8ab52b494420aba4a99a3a79 100644 (file)
@@ -578,7 +578,7 @@ scripts will wind up in :file:`/usr/local/python/bin`.  If you want them in
 
    python setup.py install --install-scripts=/usr/local/bin
 
-(This performs an installation using the "prefix scheme," where the prefix is
+(This performs an installation using the "prefix scheme", where the prefix is
 whatever your Python interpreter was installed with--- :file:`/usr/local/python`
 in this case.)
 
index 896afd1d7306286c05c3274b75e0f13fa10904a4..bf9639bdaca50a8c7b9b833bb06f0497760adadf 100644 (file)
@@ -18,7 +18,7 @@ belonging to a temporary file) and the :program:`xmpeg` program can be
 automatically started to view the file.
 
 The mailcap format is documented in :rfc:`1524`, "A User Agent Configuration
-Mechanism For Multimedia Mail Format Information," but is not an Internet
+Mechanism For Multimedia Mail Format Information", but is not an Internet
 standard.  However, mailcap files are supported on most Unix systems.
 
 
index deadf1820851595777a4e6fb398538ad81e2841a..3167c9f0bd39ab3c782a5a6e9083cb6232ab29ff 100644 (file)
@@ -120,7 +120,7 @@ The :mod:`pprint` module also provides several shortcut functions:
 
    .. index:: builtin: eval
 
-   Determine if the formatted representation of *object* is "readable," or can be
+   Determine if the formatted representation of *object* is "readable", or can be
    used to reconstruct the value using :func:`eval`.  This always returns ``False``
    for recursive objects.
 
index 5aff697b8dfe240367ed937e9b6748f1b08fd3ac..0646b30f6f59458d8f33a0d567a80e3dc208702c 100644 (file)
@@ -42,7 +42,7 @@ This module provides a class, :class:`ssl.SSLSocket`, which is derived from the
 :class:`socket.socket` type, and provides a socket-like wrapper that also
 encrypts and decrypts the data going over the socket with SSL.  It supports
 additional methods such as :meth:`getpeercert`, which retrieves the
-certificate of the other side of the connection, and :meth:`cipher`,which
+certificate of the other side of the connection, and :meth:`cipher`, which
 retrieves the cipher being used for the secure connection.
 
 For more sophisticated applications, the :class:`ssl.SSLContext` class
@@ -2235,7 +2235,7 @@ Visual inspection shows that the certificate does identify the desired service
                 (('postalCode', '03894-4801'),),
                 (('countryName', 'US'),),
                 (('stateOrProvinceName', 'NH'),),
-                (('localityName', 'Wolfeboro,'),),
+                (('localityName', 'Wolfeboro'),),
                 (('organizationName', 'Python Software Foundation'),),
                 (('commonName', 'www.python.org'),)),
     'subjectAltName': (('DNS', 'www.python.org'),
index 0f11ef401569de600fe0194f62475cc66cf7ce1d..16837104b6cebcde285fbfad8c3289617de36443 100644 (file)
@@ -239,7 +239,7 @@ hyphenated words; only then will long words be broken if necessary, unless
       :attr:`fix_sentence_endings` is false by default.
 
       Since the sentence detection algorithm relies on ``string.lowercase`` for
-      the definition of "lowercase letter," and a convention of using two spaces
+      the definition of "lowercase letter", and a convention of using two spaces
       after a period to separate sentences on the same line, it is specific to
       English-language texts.
 
index 4dd56f9e7c8bf6ff58b582d20f8eba8231421577..2f6cf290bb380c8dbfcc5e91dad6e52f8da6c7dd 100644 (file)
@@ -13,7 +13,7 @@
 
 The :mod:`tokenize` module provides a lexical scanner for Python source code,
 implemented in Python.  The scanner in this module returns comments as tokens
-as well, making it useful for implementing "pretty-printers," including
+as well, making it useful for implementing "pretty-printers", including
 colorizers for on-screen displays.
 
 To simplify token stream handling, all :ref:`operator <operators>` and
index 6bd77176d0de3d728857fc7a527c7ed0b9856906..af28c1712a99730a20d5e8639ea75ffad9bee774 100644 (file)
@@ -17,7 +17,7 @@ Objects, values and types
 
 :dfn:`Objects` are Python's abstraction for data.  All data in a Python program
 is represented by objects or by relations between objects. (In a sense, and in
-conformance to Von Neumann's model of a "stored program computer," code is also
+conformance to Von Neumann's model of a "stored program computer", code is also
 represented by objects.)
 
 .. index::
index 0a61ded2e3abd56ff6f62b6df93413f557b0bfa7..51e779c053688704e3a335fa4b3bdaee41b581eb 100644 (file)
@@ -28,7 +28,7 @@ Arithmetic conversions
 .. index:: pair: arithmetic; conversion
 
 When a description of an arithmetic operator below uses the phrase "the numeric
-arguments are converted to a common type," this means that the operator
+arguments are converted to a common type", this means that the operator
 implementation for built-in types works as follows:
 
 * If either argument is a complex number, the other is converted to complex;