Skip to content

Commit cb57023

Browse files
committed
Fix a couple of typos and a few code snippet errors in the Python documentation
1 parent 2a37d67 commit cb57023

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3920,7 +3920,7 @@ subclassed handler which looks something like this::
39203920

39213921
You'll need to be familiar with RFC 5424 to fully understand the above code, and it
39223922
may be that you have slightly different needs (e.g. for how you pass structural data
3923-
to the log). Nevertheless, the above should be adaptable to your speciric needs. With
3923+
to the log). Nevertheless, the above should be adaptable to your specific needs. With
39243924
the above handler, you'd pass structured data using something like this::
39253925

39263926
sd = {

Doc/howto/mro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ prescription:
189189
the tail of any of the other lists, then add it to the linearization
190190
of C and remove it from the lists in the merge, otherwise look at the
191191
head of the next list and take it, if it is a good head. Then repeat
192-
the operation until all the class are removed or it is impossible to
192+
the operation until all the classes are removed or it is impossible to
193193
find good heads. In this case, it is impossible to construct the
194194
merge, Python 2.3 will refuse to create the class C and will raise an
195195
exception.*

Doc/library/logging.config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ following configuration::
555555
'bar' : 'baz',
556556
'spam' : 99.9,
557557
'answer' : 42,
558-
'.' {
558+
'.' : {
559559
'foo': 'bar',
560560
'baz': 'bozz'
561561
}

Doc/library/pdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ can be overridden by the local file.
834834
def inner(x):
835835
1 / x
836836

837-
out()
837+
out()
838838

839839
calling ``pdb.pm()`` will allow to move between exceptions::
840840

0 commit comments

Comments
 (0)