Skip to content

Commit b183750

Browse files
[3.7] bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231). (GH-10253)
(cherry picked from commit 3f819ca)
1 parent aa0a21a commit b183750

33 files changed

+126
-123
lines changed

‎Doc/c-api/veryhigh.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ the same library that the Python runtime is using.
306306
Evaluate a precompiled code object, given a particular environment for its
307307
evaluation. This environment consists of a dictionary of global variables,
308308
a mapping object of local variables, arrays of arguments, keywords and
309-
defaults, a dictionary of default values for :ref:`keyword-only\
309+
defaults, a dictionary of default values for :ref:`keyword-only
310310
<keyword-only_parameter>` arguments and a closure tuple of cells.
311311
312312

‎Doc/distutils/apiref.rst‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ the full reference.
183183
| *sources* | list of source filenames, | a list of strings |
184184
| | relative to the distribution | |
185185
| | root (where the setup script | |
186-
| | lives), in Unix form (slash- | |
187-
| | separated) for portability. | |
186+
| | lives), in Unix form | |
187+
| | (slash-separated) for | |
188+
| | portability. | |
188189
| | Source files may be C, C++, | |
189190
| | SWIG (.i), platform-specific | |
190191
| | resource files, or whatever | |
@@ -1566,8 +1567,8 @@ lines, and joining lines with backslashes.
15661567
+------------------+--------------------------------+---------+
15671568
| option name | description | default |
15681569
+==================+================================+=========+
1569-
| *strip_comments* | strip from ``'#'`` to end-of- | true |
1570-
| | line, as well as any | |
1570+
| *strip_comments* | strip from ``'#'`` to | true |
1571+
| | end-of-line, as well as any | |
15711572
| | whitespace leading up to the | |
15721573
| | ``'#'``\ ---unless it is | |
15731574
| | escaped by a backslash | |

‎Doc/distutils/builtdist.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ distribution to generate: for example, ::
6363

6464
python setup.py bdist --format=zip
6565

66-
would, when run on a Unix system, create :file:`Distutils-1.0.{plat}.zip`\
67-
---again, this archive would be unpacked from the root directory to install the
68-
Distutils.
66+
would, when run on a Unix system, create
67+
:file:`Distutils-1.0.{plat}.zip`\ ---again, this archive would be unpacked
68+
from the root directory to install the Distutils.
6969

7070
The available formats for built distributions are:
7171

‎Doc/distutils/configfile.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ edit is a cheap and easy way to solicit it. Configuration files also let you
1313
provide default values for any command option, which the installer can then
1414
override either on the command-line or by editing the config file.
1515

16-
The setup configuration file is a useful middle-ground between the setup script
17-
---which, ideally, would be opaque to installers [#]_---and the command-line to
16+
The setup configuration file is a useful middle-ground between the setup
17+
script---which, ideally, would be opaque to installers [#]_---and the command-line to
1818
the setup script, which is outside of your control and entirely up to the
1919
installer. In fact, :file:`setup.cfg` (and any other Distutils configuration
2020
files present on the target system) are processed after the contents of the

‎Doc/extending/extending.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,9 @@ or more format codes between parentheses. For example::
545545
:c:func:`PyObject_CallObject` returns a Python object pointer: this is the return
546546
value of the Python function. :c:func:`PyObject_CallObject` is
547547
"reference-count-neutral" with respect to its arguments. In the example a new
548-
tuple was created to serve as the argument list, which is :c:func:`Py_DECREF`\
549-
-ed immediately after the :c:func:`PyObject_CallObject` call.
548+
tuple was created to serve as the argument list, which is
549+
:c:func:`Py_DECREF`\ -ed immediately after the :c:func:`PyObject_CallObject`
550+
call.
550551

551552
The return value of :c:func:`PyObject_CallObject` is "new": either it is a brand
552553
new object, or it is an existing object whose reference count has been

‎Doc/howto/logging.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ provided:
971971

972972
The :class:`NullHandler`, :class:`StreamHandler` and :class:`FileHandler`
973973
classes are defined in the core logging package. The other handlers are
974-
defined in a sub- module, :mod:`logging.handlers`. (There is also another
974+
defined in a sub-module, :mod:`logging.handlers`. (There is also another
975975
sub-module, :mod:`logging.config`, for configuration functionality.)
976976

977977
Logged messages are formatted for presentation through instances of the

‎Doc/install/index.rst‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,10 @@ C headers ``--install-headers``
554554

555555
These override options can be relative, absolute,
556556
or explicitly defined in terms of one of the installation base directories.
557-
(There are two installation base directories, and they are normally the same---
558-
they only differ when you use the Unix "prefix scheme" and supply different
559-
``--prefix`` and ``--exec-prefix`` options; using ``--install-lib`` will
560-
override values computed or given for ``--install-purelib`` and
557+
(There are two installation base directories, and they are normally the
558+
same---they only differ when you use the Unix "prefix scheme" and supply
559+
different ``--prefix`` and ``--exec-prefix`` options; using ``--install-lib``
560+
will override values computed or given for ``--install-purelib`` and
561561
``--install-platlib``, and is recommended for schemes that don't make a
562562
difference between Python and extension modules.)
563563

@@ -584,10 +584,10 @@ in this case.)
584584

585585
If you maintain Python on Windows, you might want third-party modules to live in
586586
a subdirectory of :file:`{prefix}`, rather than right in :file:`{prefix}`
587-
itself. This is almost as easy as customizing the script installation directory
588-
---you just have to remember that there are two types of modules to worry about,
589-
Python and extension modules, which can conveniently be both controlled by one
590-
option::
587+
itself. This is almost as easy as customizing the script installation
588+
directory---you just have to remember that there are two types of modules
589+
to worry about, Python and extension modules, which can conveniently be both
590+
controlled by one option::
591591

592592
python setup.py install --install-lib=Site
593593

‎Doc/library/codecs.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,10 +1121,10 @@ particular, the following variants typically exist:
11211121
| | ks_c-5601, ks_c-5601-1987, | |
11221122
| | ksx1001, ks_x-1001 | |
11231123
+-----------------+--------------------------------+--------------------------------+
1124-
| gb2312 | chinese, csiso58gb231280, euc- | Simplified Chinese |
1125-
| | cn, euccn, eucgb2312-cn, | |
1126-
| | gb2312-1980, gb2312-80, iso- | |
1127-
| | ir-58 | |
1124+
| gb2312 | chinese, csiso58gb231280, | Simplified Chinese |
1125+
| | euc-cn, euccn, eucgb2312-cn, | |
1126+
| | gb2312-1980, gb2312-80, | |
1127+
| | iso-ir-58 | |
11281128
+-----------------+--------------------------------+--------------------------------+
11291129
| gbk | 936, cp936, ms936 | Unified Chinese |
11301130
+-----------------+--------------------------------+--------------------------------+

‎Doc/library/datetime.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,10 @@ Supported operations:
276276
| ``+t1`` | Returns a :class:`timedelta` object with the |
277277
| | same value. (2) |
278278
+--------------------------------+-----------------------------------------------+
279-
| ``-t1`` | equivalent to :class:`timedelta`\ |
280-
| | (-*t1.days*, -*t1.seconds*, |
281-
| | -*t1.microseconds*), and to *t1*\* -1. (1)(4) |
279+
| ``-t1`` | equivalent to |
280+
| | :class:`timedelta`\ (-*t1.days*, |
281+
| | -*t1.seconds*, -*t1.microseconds*), |
282+
| | and to *t1*\* -1. (1)(4) |
282283
+--------------------------------+-----------------------------------------------+
283284
| ``abs(t)`` | equivalent to +\ *t* when ``t.days >= 0``, and|
284285
| | to -*t* when ``t.days < 0``. (2) |

‎Doc/library/email.compat32-message.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ Here are the methods of the :class:`Message` class:
149149

150150
.. method:: is_multipart()
151151

152-
Return ``True`` if the message's payload is a list of sub-\
153-
:class:`Message` objects, otherwise return ``False``. When
152+
Return ``True`` if the message's payload is a list of
153+
sub-\ :class:`Message` objects, otherwise return ``False``. When
154154
:meth:`is_multipart` returns ``False``, the payload should be a string
155155
object (which might be a CTE encoded binary payload. (Note that
156156
:meth:`is_multipart` returning ``True`` does not necessarily mean that

0 commit comments

Comments
 (0)