Skip to content

Commit 1d359b8

Browse files
delirious-lettuceserhiy-storchaka
authored andcommitted
[3.5] Fix typos in multiple .rst files (GH-1668) (#1706)
1 parent 65440f8 commit 1d359b8

15 files changed

+22
-22
lines changed

Doc/c-api/exceptions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ an error value).
295295
:c:data:`PyExc_Warning` is a subclass of :c:data:`PyExc_Exception`;
296296
the default warning category is :c:data:`PyExc_RuntimeWarning`. The standard
297297
Python warning categories are available as global variables whose names are
298-
enumerated at :ref:`standarwarningcategories`.
298+
enumerated at :ref:`standardwarningcategories`.
299299
300300
For information about warning control, see the documentation for the
301301
:mod:`warnings` module and the :option:`-W` option in the command line
@@ -937,7 +937,7 @@ Notes:
937937
Only defined on Windows; protect code that uses this by testing that the
938938
preprocessor macro ``MS_WINDOWS`` is defined.
939939
940-
.. _standarwarningcategories:
940+
.. _standardwarningcategories:
941941
942942
Standard Warning Categories
943943
===========================
@@ -950,7 +950,7 @@ the variables:
950950
.. index::
951951
single: PyExc_Warning
952952
single: PyExc_BytesWarning
953-
single: PyExc_DepricationWarning
953+
single: PyExc_DeprecationWarning
954954
single: PyExc_FutureWarning
955955
single: PyExc_ImportWarning
956956
single: PyExc_PendingDeprecationWarning
@@ -973,7 +973,7 @@ the variables:
973973
+------------------------------------------+---------------------------------+----------+
974974
| :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | |
975975
+------------------------------------------+---------------------------------+----------+
976-
| :c:data:`PyExc_PendingDepricationWarning`| :exc:`PendingDeprecationWarning`| |
976+
| :c:data:`PyExc_PendingDeprecationWarning`| :exc:`PendingDeprecationWarning`| |
977977
+------------------------------------------+---------------------------------+----------+
978978
| :c:data:`PyExc_ResourceWarning` | :exc:`ResourceWarning` | |
979979
+------------------------------------------+---------------------------------+----------+

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ Implementing structured logging
16831683
-------------------------------
16841684

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

Doc/library/cmd.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ immediate playback::
266266
'Draw circle with given radius an options extent and steps: CIRCLE 50'
267267
circle(*parse(arg))
268268
def do_position(self, arg):
269-
'Print the current turle position: POSITION'
269+
'Print the current turtle position: POSITION'
270270
print('Current position is %d %d\n' % position())
271271
def do_heading(self, arg):
272-
'Print the current turle heading in degrees: HEADING'
272+
'Print the current turtle heading in degrees: HEADING'
273273
print('Current heading is %d\n' % (heading(),))
274274
def do_color(self, arg):
275275
'Set the color: COLOR BLUE'

Doc/library/email.contentmanager.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ this module.
6262
.. class:: EmailMessage(policy=default)
6363

6464
If *policy* is specified (it must be an instance of a :mod:`~email.policy`
65-
class) use the rules it specifies to udpate and serialize the representation
65+
class) use the rules it specifies to update and serialize the representation
6666
of the message. If *policy* is not set, use the
6767
:class:`~email.policy.default` policy, which follows the rules of the email
6868
RFCs except for line endings (instead of the RFC mandated ``\r\n``, it uses
@@ -108,7 +108,7 @@ this module.
108108
the part a candidate match if the value of the header is ``inline``.
109109

110110
If none of the candidates matches any of the preferences in
111-
*preferneclist*, return ``None``.
111+
*preferencelist*, return ``None``.
112112

113113
Notes: (1) For most applications the only *preferencelist* combinations
114114
that really make sense are ``('plain',)``, ``('html', 'plain')``, and the
@@ -396,7 +396,7 @@ Currently the email package provides only one concrete content manager,
396396
MIME charset name, use the standard charset instead.
397397

398398
If *cte* is set, encode the payload using the specified content transfer
399-
encoding, and set the :mailheader:`Content-Transfer-Endcoding` header to
399+
encoding, and set the :mailheader:`Content-Transfer-Encoding` header to
400400
that value. For ``str`` objects, if it is not set use heuristics to
401401
determine the most compact encoding. Possible values for *cte* are
402402
``quoted-printable``, ``base64``, ``7bit``, ``8bit``, and ``binary``.

Doc/library/email.errors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ this class is *not* an exception!
108108
return false even though its content type claims to be :mimetype:`multipart`.
109109

110110
* :class:`InvalidBase64PaddingDefect` -- When decoding a block of base64
111-
enocded bytes, the padding was not correct. Enough padding is added to
111+
encoded bytes, the padding was not correct. Enough padding is added to
112112
perform the decode, but the resulting decoded bytes may be invalid.
113113

114114
* :class:`InvalidBase64CharactersDefect` -- When decoding a block of base64
115-
enocded bytes, characters outside the base64 alphebet were encountered.
115+
encoded bytes, characters outside the base64 alphabet were encountered.
116116
The characters are ignored, but the resulting decoded bytes may be invalid.

Doc/library/email.message.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Here are the methods of the :class:`Message` class:
5050

5151
Return the entire message flattened as a string. When optional *unixfrom*
5252
is true, the envelope header is included in the returned string.
53-
*unixfrom* defaults to ``False``. For backward compabitility reasons,
53+
*unixfrom* defaults to ``False``. For backward compatibility reasons,
5454
*maxheaderlen* defaults to ``0``, so if you want a different value you
5555
must override it explicitly (the value specified for *max_line_length* in
5656
the policy will be ignored by this method). The *policy* argument may be

Doc/library/email.mime.rst

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

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

Doc/library/email.policy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ more closely to the RFCs relevant to their domains.
540540

541541
The same as ``SMTP`` except that :attr:`~EmailPolicy.utf8` is ``True``.
542542
Useful for serializing messages to a message store without using encoded
543-
words in the headers. Should only be used for SMTP trasmission if the
543+
words in the headers. Should only be used for SMTP transmission if the
544544
sender or recipient addresses have non-ASCII characters (the
545545
:meth:`smtplib.SMTP.send_message` method handles this automatically).
546546

Doc/library/sunau.rst

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

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

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

123123

124124
.. method:: AU_read.getsampwidth()

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ always available.
12201220
| | * ``None`` if this information is unknown |
12211221
+------------------+---------------------------------------------------------+
12221222
| :const:`version` | Name and version of the thread library. It is a string, |
1223-
| | or ``None`` if these informations are unknown. |
1223+
| | or ``None`` if this information is unknown. |
12241224
+------------------+---------------------------------------------------------+
12251225

12261226
.. versionadded:: 3.3

Doc/library/turtle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ Input methods
17971797
:param prompt: string
17981798

17991799
Pop up a dialog window for input of a string. Parameter title is
1800-
the title of the dialog window, propmt is a text mostly describing
1800+
the title of the dialog window, prompt is a text mostly describing
18011801
what information to input.
18021802
Return the string input. If the dialog is canceled, return ``None``. ::
18031803

Doc/library/xml.dom.pulldom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ DOMEventStream Objects
108108
:class:`xml.dom.minidom.Element` if event equals :data:`START_ELEMENT` or
109109
:data:`END_ELEMENT` or :class:`xml.dom.minidom.Text` if event equals
110110
:data:`CHARACTERS`.
111-
The current node does not contain informations about its children, unless
111+
The current node does not contain information about its children, unless
112112
:func:`expandNode` is called.
113113

114114
.. method:: expandNode(node)

Lib/email/architecture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ data payloads.
6666
Message Lifecycle
6767
-----------------
6868

69-
The general lifecyle of a message is:
69+
The general lifecycle of a message is:
7070

7171
Creation
7272
A `Message` object can be created by a Parser, or it can be

Misc/HISTORY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3285,7 +3285,7 @@ Library
32853285
- Issue #11382: Trivial system calls, such as dup() or pipe(), needn't
32863286
release the GIL. Patch by Charles-François Natali.
32873287

3288-
- Issue #11223: Add threading._info() function providing informations about
3288+
- Issue #11223: Add threading._info() function providing information about
32893289
the thread implementation.
32903290

32913291
- Issue #11731: simplify/enhance email parser/generator API by introducing

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7248,7 +7248,7 @@ Library
72487248
- Issue #17702: On error, os.environb now suppresses the exception context
72497249
when raising a new KeyError with the original key.
72507250

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

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

0 commit comments

Comments
 (0)