mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
This commit is contained in:
commit
e418432dfb
9 changed files with 15 additions and 15 deletions
|
|
@ -1088,7 +1088,7 @@ $-formatting to be used to build the actual "message" part which appears in the
|
||||||
formatted log output in place of "%(message)s" or "{message}" or "$message".
|
formatted log output in place of "%(message)s" or "{message}" or "$message".
|
||||||
It's a little unwieldy to use the class names whenever you want to log
|
It's a little unwieldy to use the class names whenever you want to log
|
||||||
something, but it's quite palatable if you use an alias such as __ (double
|
something, but it's quite palatable if you use an alias such as __ (double
|
||||||
underscore – not to be confused with _, the single underscore used as a
|
underscore --- not to be confused with _, the single underscore used as a
|
||||||
synonym/alias for :func:`gettext.gettext` or its brethren).
|
synonym/alias for :func:`gettext.gettext` or its brethren).
|
||||||
|
|
||||||
The above classes are not included in Python, though they're easy enough to
|
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 ::
|
||||||
at module level). It's probably one too many things to think about. Developers
|
at module level). It's probably one too many things to think about. Developers
|
||||||
could also add the filter to a :class:`~logging.NullHandler` attached to their
|
could also add the filter to a :class:`~logging.NullHandler` attached to their
|
||||||
top-level logger, but this would not be invoked if an application developer
|
top-level logger, but this would not be invoked if an application developer
|
||||||
attached a handler to a lower-level library logger – so output from that
|
attached a handler to a lower-level library logger --- so output from that
|
||||||
handler would not reflect the intentions of the library developer.
|
handler would not reflect the intentions of the library developer.
|
||||||
|
|
||||||
In Python 3.2 and later, :class:`~logging.LogRecord` creation is done through a
|
In Python 3.2 and later, :class:`~logging.LogRecord` creation is done through a
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
:mod:`asyncio` -- Asynchronous I/O, event loop, coroutines and tasks
|
:mod:`asyncio` --- Asynchronous I/O, event loop, coroutines and tasks
|
||||||
====================================================================
|
=====================================================================
|
||||||
|
|
||||||
.. module:: asyncio
|
.. module:: asyncio
|
||||||
:synopsis: Asynchronous I/O, event loop, coroutines and tasks.
|
:synopsis: Asynchronous I/O, event loop, coroutines and tasks.
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ on the hash function used in digital signatures.
|
||||||
function providing less collision resistance than expected. Randomized
|
function providing less collision resistance than expected. Randomized
|
||||||
hashing offers the signer additional protection by reducing the likelihood
|
hashing offers the signer additional protection by reducing the likelihood
|
||||||
that a preparer can generate two or more messages that ultimately yield the
|
that a preparer can generate two or more messages that ultimately yield the
|
||||||
same hash value during the digital signature generation process – even if
|
same hash value during the digital signature generation process --- even if
|
||||||
it is practical to find collisions for the hash function. However, the use
|
it is practical to find collisions for the hash function. However, the use
|
||||||
of randomized hashing may reduce the amount of security provided by a
|
of randomized hashing may reduce the amount of security provided by a
|
||||||
digital signature when all portions of the message are prepared
|
digital signature when all portions of the message are prepared
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
:mod:`importlib` -- The implementation of :keyword:`import`
|
:mod:`importlib` --- The implementation of :keyword:`import`
|
||||||
===========================================================
|
============================================================
|
||||||
|
|
||||||
.. module:: importlib
|
.. module:: importlib
|
||||||
:synopsis: The implementation of the import machinery.
|
:synopsis: The implementation of the import machinery.
|
||||||
|
|
|
||||||
|
|
@ -561,7 +561,7 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
|
||||||
handled by a strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the
|
handled by a strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the
|
||||||
part after the comma is a millisecond value. Because strptime does not
|
part after the comma is a millisecond value. Because strptime does not
|
||||||
have a format placeholder for milliseconds, the millisecond value is
|
have a format placeholder for milliseconds, the millisecond value is
|
||||||
appended using another format string, ``'%s,%03d'`` – and both of these
|
appended using another format string, ``'%s,%03d'`` --- and both of these
|
||||||
format strings have been hardcoded into this method. With the change,
|
format strings have been hardcoded into this method. With the change,
|
||||||
these strings are defined as class-level attributes which can be
|
these strings are defined as class-level attributes which can be
|
||||||
overridden at the instance level when desired. The names of the
|
overridden at the instance level when desired. The names of the
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
:mod:`msvcrt` -- Useful routines from the MS VC++ runtime
|
:mod:`msvcrt` --- Useful routines from the MS VC++ runtime
|
||||||
=========================================================
|
==========================================================
|
||||||
|
|
||||||
.. module:: msvcrt
|
.. module:: msvcrt
|
||||||
:platform: Windows
|
:platform: Windows
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
:mod:`selectors` -- High-level I/O multiplexing
|
:mod:`selectors` --- High-level I/O multiplexing
|
||||||
===============================================
|
================================================
|
||||||
|
|
||||||
.. module:: selectors
|
.. module:: selectors
|
||||||
:synopsis: High-level I/O multiplexing.
|
:synopsis: High-level I/O multiplexing.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
:mod:`winreg` -- Windows registry access
|
:mod:`winreg` --- Windows registry access
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
.. module:: winreg
|
.. module:: winreg
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
.. _tut-brieftourtwo:
|
.. _tut-brieftourtwo:
|
||||||
|
|
||||||
*********************************************
|
*********************************************
|
||||||
Brief Tour of the Standard Library -- Part II
|
Brief Tour of the Standard Library --- Part II
|
||||||
*********************************************
|
**********************************************
|
||||||
|
|
||||||
This second tour covers more advanced modules that support professional
|
This second tour covers more advanced modules that support professional
|
||||||
programming needs. These modules rarely occur in small scripts.
|
programming needs. These modules rarely occur in small scripts.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue