Skip to content

Commit 374e57d

Browse files
delirious-lettuceserhiy-storchaka
authored andcommitted
[2.7] Fix typos in multiple .rst files (GH-1668) (#1707)
1 parent 6e1b832 commit 374e57d

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Doc/c-api/exceptions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ is a separate error indicator for each thread.
290290
:c:data:`PyExc_Warning` is a subclass of :c:data:`PyExc_Exception`;
291291
the default warning category is :c:data:`PyExc_RuntimeWarning`. The standard
292292
Python warning categories are available as global variables whose names are
293-
enumerated at :ref:`standarwarningcategories`.
293+
enumerated at :ref:`standardwarningcategories`.
294294
295295
For information about warning control, see the documentation for the
296296
:mod:`warnings` module and the :option:`-W` option in the command line
@@ -665,7 +665,7 @@ Notes:
665665
Only defined on VMS; protect code that uses this by testing that the
666666
preprocessor macro ``__VMS`` is defined.
667667
668-
.. _standarwarningcategories:
668+
.. _standardwarningcategories:
669669
670670
Standard Warning Categories
671671
===========================
@@ -678,7 +678,7 @@ the variables:
678678
.. index::
679679
single: PyExc_Warning
680680
single: PyExc_BytesWarning
681-
single: PyExc_DepricationWarning
681+
single: PyExc_DeprecationWarning
682682
single: PyExc_FutureWarning
683683
single: PyExc_ImportWarning
684684
single: PyExc_PendingDeprecationWarning
@@ -700,7 +700,7 @@ the variables:
700700
+------------------------------------------+---------------------------------+----------+
701701
| :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | |
702702
+------------------------------------------+---------------------------------+----------+
703-
| :c:data:`PyExc_PendingDepricationWarning`| :exc:`PendingDeprecationWarning`| |
703+
| :c:data:`PyExc_PendingDeprecationWarning`| :exc:`PendingDeprecationWarning`| |
704704
+------------------------------------------+---------------------------------+----------+
705705
| :c:data:`PyExc_RuntimeWarning` | :exc:`RuntimeWarning` | |
706706
+------------------------------------------+---------------------------------+----------+

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ Implementing structured logging
814814
-------------------------------
815815

816816
Although most logging messages are intended for reading by humans, and thus not
817-
readily machine-parseable, there might be cirumstances where you want to output
817+
readily machine-parseable, there might be circumstances where you want to output
818818
messages in a structured format which *is* capable of being parsed by a program
819819
(without needing complex regular expressions to parse the log message). This is
820820
straightforward to achieve using the logging package. There are a number of

Doc/library/email.mime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Here are the classes:
210210

211211
Unless the ``_charset`` parameter is explicitly set to ``None``, the
212212
MIMEText object created will have both a :mailheader:`Content-Type` header
213-
with a ``charset`` parameter, and a :mailheader:`Content-Transfer-Endcoding`
213+
with a ``charset`` parameter, and a :mailheader:`Content-Transfer-Encoding`
214214
header. This means that a subsequent ``set_payload`` call will not result
215215
in an encoded payload, even if a charset is passed in the ``set_payload``
216216
command. You can "reset" this behavior by deleting the

Doc/library/sunau.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ AU_read objects, as returned by :func:`.open` above, have the following methods:
117117

118118
.. method:: AU_read.getnchannels()
119119

120-
Returns number of audio channels (1 for mone, 2 for stereo).
120+
Returns number of audio channels (1 for mono, 2 for stereo).
121121

122122

123123
.. method:: AU_read.getsampwidth()

Misc/NEWS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,15 +1225,15 @@ Library
12251225

12261226
- Issue #24091: Fixed various crashes in corner cases in cElementTree.
12271227

1228-
- Issue #15267: HTTPConnection.request() now is compatibile with old-style
1228+
- Issue #15267: HTTPConnection.request() now is compatible with old-style
12291229
classes (such as TemporaryFile). Original patch by Atsuo Ishimoto.
12301230

12311231
- Issue #20014: array.array() now accepts unicode typecodes. Based on patch by
12321232
Vajrasky Kok.
12331233

1234-
- Issue #23637: Showing a warning no longer fails with UnicodeErrror.
1234+
- Issue #23637: Showing a warning no longer fails with UnicodeError.
12351235
Formatting unicode warning in the file with the path containing non-ascii
1236-
characters no longer fails with UnicodeErrror.
1236+
characters no longer fails with UnicodeError.
12371237

12381238
- Issue #24134: Reverted issue #24134 changes.
12391239

@@ -1974,7 +1974,7 @@ Library
19741974
sequence is used on some terminal (ex: TERM=xterm-256color") to enable
19751975
support of 8 bit characters.
19761976

1977-
- Issue #22017: Correct reference counting errror in the initialization of the
1977+
- Issue #22017: Correct reference counting error in the initialization of the
19781978
_warnings module.
19791979

19801980
- Issue #21868: Prevent turtle crash when undo buffer set to a value less
@@ -2907,7 +2907,7 @@ Library
29072907
- Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
29082908
properly handled as unsigned.
29092909

2910-
- Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.
2910+
- Issue #16809: Fixed some tkinter incompatibilities with Tcl/Tk 8.6.
29112911

29122912
- Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
29132913
argument.

0 commit comments

Comments
 (0)