From 799811bf07afb8248094b39565f8f59d774b02a5 Mon Sep 17 00:00:00 2001 From: ttiee <469784630@qq.com> Date: Thu, 16 Apr 2026 08:31:12 +0800 Subject: [PATCH] docs: remove stray spaces in documentation --- Doc/howto/logging-cookbook.rst | 2 +- Doc/library/readline.rst | 4 ++-- Doc/tutorial/classes.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index 0ee4c0086dd98c..a1a707f30fd5cf 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -4170,7 +4170,7 @@ The script, when run, should produce output like this: 2025-07-09 06:47:33,783 DEBUG Another single line 2025-07-09 06:47:33,783 DEBUG Multiple lines:\nfool me ...\ncan't get fooled again -Escaping behaviour can't be the stdlib default , as it would break backwards +Escaping behaviour can't be the stdlib default, as it would break backwards compatibility. .. patterns-to-avoid: diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index 234af8d191e3e3..20ce779fdec006 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -10,8 +10,8 @@ The :mod:`!readline` module defines a number of functions to facilitate completion and reading/writing of history files from the Python interpreter. This module can be used directly, or via the :mod:`rlcompleter` module, which supports completion of Python identifiers at the interactive prompt. Settings -made using this module affect the behaviour of both the interpreter's -interactive prompt and the prompts offered by the built-in :func:`input` +made using this module affect the behaviour of both the interpreter's +interactive prompt and the prompts offered by the built-in :func:`input` function. Readline keybindings may be configured via an initialization file, typically diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 4f7da5253f78bc..3634cfb22e4362 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -720,7 +720,7 @@ breaking intraclass method calls. For example:: The above example would work even if ``MappingSubclass`` were to introduce a ``__update`` identifier since it is replaced with ``_Mapping__update`` in the -``Mapping`` class and ``_MappingSubclass__update`` in the ``MappingSubclass`` +``Mapping`` class and ``_MappingSubclass__update`` in the ``MappingSubclass`` class respectively. Note that the mangling rules are designed mostly to avoid accidents; it still is