From 87632cfc0123ff0024c8e0945e9978eaf9558150 Mon Sep 17 00:00:00 2001 From: Willy Bruns Date: Wed, 9 Sep 2026 14:58:41 +0000 Subject: [PATCH] gh-156233: Fix typos and code snippet errors in the docs (GH-156475) (cherry picked from commit 9f90a8659aa86bc203b7628611c79508d30e36b6) Co-authored-by: Willy Bruns --- Doc/howto/logging-cookbook.rst | 2 +- Doc/howto/mro.rst | 2 +- Doc/library/logging.config.rst | 2 +- Doc/library/pdb.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index 39a7b41c755097..a7e410c46b9c95 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -3925,7 +3925,7 @@ subclassed handler which looks something like this:: You'll need to be familiar with RFC 5424 to fully understand the above code, and it may be that you have slightly different needs (e.g. for how you pass structural data -to the log). Nevertheless, the above should be adaptable to your speciric needs. With +to the log). Nevertheless, the above should be adaptable to your specific needs. With the above handler, you'd pass structured data using something like this:: sd = { diff --git a/Doc/howto/mro.rst b/Doc/howto/mro.rst index 72cc311e30d669..5007fa046b9c79 100644 --- a/Doc/howto/mro.rst +++ b/Doc/howto/mro.rst @@ -189,7 +189,7 @@ prescription: the tail of any of the other lists, then add it to the linearization of C and remove it from the lists in the merge, otherwise look at the head of the next list and take it, if it is a good head. Then repeat - the operation until all the class are removed or it is impossible to + the operation until all the classes are removed or it is impossible to find good heads. In this case, it is impossible to construct the merge, Python 2.3 will refuse to create the class C and will raise an exception.* diff --git a/Doc/library/logging.config.rst b/Doc/library/logging.config.rst index 6709062dfca72b..8a91faedc4ea0b 100644 --- a/Doc/library/logging.config.rst +++ b/Doc/library/logging.config.rst @@ -558,7 +558,7 @@ following configuration:: 'bar' : 'baz', 'spam' : 99.9, 'answer' : 42, - '.' { + '.' : { 'foo': 'bar', 'baz': 'bozz' } diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index e7dd2e5524abca..abd38acad68174 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -833,7 +833,7 @@ can be overridden by the local file. def inner(x): 1 / x - out() + out() calling ``pdb.pm()`` will allow to move between exceptions::