Skip to content

Commit 3f819ca

Browse files
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
1 parent 68f3237 commit 3f819ca

34 files changed

+128
-124
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/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

‎Doc/library/email.message.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ message objects.
130130

131131
.. method:: is_multipart()
132132

133-
Return ``True`` if the message's payload is a list of sub-\
134-
:class:`EmailMessage` objects, otherwise return ``False``. When
133+
Return ``True`` if the message's payload is a list of
134+
sub-\ :class:`EmailMessage` objects, otherwise return ``False``. When
135135
:meth:`is_multipart` returns ``False``, the payload should be a string
136136
object (which might be a CTE encoded binary payload). Note that
137137
:meth:`is_multipart` returning ``True`` does not necessarily mean that

0 commit comments

Comments
 (0)