Skip to content

Commit e418432

Browse files
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
2 parents 21cf577 + 29b0a26 commit e418432

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

Doc/howto/logging-cookbook.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ $-formatting to be used to build the actual "message" part which appears in the
10881088
formatted log output in place of "%(message)s" or "{message}" or "$message".
10891089
It's a little unwieldy to use the class names whenever you want to log
10901090
something, but it's quite palatable if you use an alias such as __ (double
1091-
underscore not to be confused with _, the single underscore used as a
1091+
underscore --- not to be confused with _, the single underscore used as a
10921092
synonym/alias for :func:`gettext.gettext` or its brethren).
10931093

10941094
The above classes are not included in Python, though they're easy enough to
@@ -1209,7 +1209,7 @@ do simply by adding new packages or modules and doing ::
12091209
at module level). It's probably one too many things to think about. Developers
12101210
could also add the filter to a :class:`~logging.NullHandler` attached to their
12111211
top-level logger, but this would not be invoked if an application developer
1212-
attached a handler to a lower-level library logger so output from that
1212+
attached a handler to a lower-level library logger --- so output from that
12131213
handler would not reflect the intentions of the library developer.
12141214

12151215
In Python 3.2 and later, :class:`~logging.LogRecord` creation is done through a

Doc/library/asyncio.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
:mod:`asyncio` -- Asynchronous I/O, event loop, coroutines and tasks
2-
====================================================================
1+
:mod:`asyncio` --- Asynchronous I/O, event loop, coroutines and tasks
2+
=====================================================================
33

44
.. module:: asyncio
55
:synopsis: Asynchronous I/O, event loop, coroutines and tasks.

Doc/library/hashlib-blake2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ on the hash function used in digital signatures.
280280
function providing less collision resistance than expected. Randomized
281281
hashing offers the signer additional protection by reducing the likelihood
282282
that a preparer can generate two or more messages that ultimately yield the
283-
same hash value during the digital signature generation process even if
283+
same hash value during the digital signature generation process --- even if
284284
it is practical to find collisions for the hash function. However, the use
285285
of randomized hashing may reduce the amount of security provided by a
286286
digital signature when all portions of the message are prepared

Doc/library/importlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
:mod:`importlib` -- The implementation of :keyword:`import`
2-
===========================================================
1+
:mod:`importlib` --- The implementation of :keyword:`import`
2+
============================================================
33

44
.. module:: importlib
55
:synopsis: The implementation of the import machinery.

Doc/library/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
561561
handled by a strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the
562562
part after the comma is a millisecond value. Because strptime does not
563563
have a format placeholder for milliseconds, the millisecond value is
564-
appended using another format string, ``'%s,%03d'`` and both of these
564+
appended using another format string, ``'%s,%03d'`` --- and both of these
565565
format strings have been hardcoded into this method. With the change,
566566
these strings are defined as class-level attributes which can be
567567
overridden at the instance level when desired. The names of the

Doc/library/msvcrt.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
:mod:`msvcrt` -- Useful routines from the MS VC++ runtime
2-
=========================================================
1+
:mod:`msvcrt` --- Useful routines from the MS VC++ runtime
2+
==========================================================
33

44
.. module:: msvcrt
55
:platform: Windows

Doc/library/selectors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
:mod:`selectors` -- High-level I/O multiplexing
2-
===============================================
1+
:mod:`selectors` --- High-level I/O multiplexing
2+
================================================
33

44
.. module:: selectors
55
:synopsis: High-level I/O multiplexing.

Doc/library/winreg.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:mod:`winreg` -- Windows registry access
1+
:mod:`winreg` --- Windows registry access
22
=========================================
33

44
.. module:: winreg

Doc/tutorial/stdlib2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _tut-brieftourtwo:
22

33
*********************************************
4-
Brief Tour of the Standard Library -- Part II
5-
*********************************************
4+
Brief Tour of the Standard Library --- Part II
5+
**********************************************
66

77
This second tour covers more advanced modules that support professional
88
programming needs. These modules rarely occur in small scripts.

0 commit comments

Comments
 (0)