Skip to content

Commit 3378b20

Browse files
delirious-lettuceserhiy-storchaka
authored andcommitted
Fix typos in multiple .rst files (#1668)
1 parent a632d00 commit 3378b20

18 files changed

+31
-31
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
@@ -958,7 +958,7 @@ Notes:
958958
Only defined on Windows; protect code that uses this by testing that the
959959
preprocessor macro ``MS_WINDOWS`` is defined.
960960
961-
.. _standarwarningcategories:
961+
.. _standardwarningcategories:
962962
963963
Standard Warning Categories
964964
===========================
@@ -971,7 +971,7 @@ the variables:
971971
.. index::
972972
single: PyExc_Warning
973973
single: PyExc_BytesWarning
974-
single: PyExc_DepricationWarning
974+
single: PyExc_DeprecationWarning
975975
single: PyExc_FutureWarning
976976
single: PyExc_ImportWarning
977977
single: PyExc_PendingDeprecationWarning
@@ -994,7 +994,7 @@ the variables:
994994
+------------------------------------------+---------------------------------+----------+
995995
| :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | |
996996
+------------------------------------------+---------------------------------+----------+
997-
| :c:data:`PyExc_PendingDepricationWarning`| :exc:`PendingDeprecationWarning`| |
997+
| :c:data:`PyExc_PendingDeprecationWarning`| :exc:`PendingDeprecationWarning`| |
998998
+------------------------------------------+---------------------------------+----------+
999999
| :c:data:`PyExc_ResourceWarning` | :exc:`ResourceWarning` | |
10001000
+------------------------------------------+---------------------------------+----------+

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.compat32-message.rst

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

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

Doc/library/email.contentmanager.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Currently the email package provides only one concrete content manager,
157157
MIME charset name, use the standard charset instead.
158158

159159
If *cte* is set, encode the payload using the specified content transfer
160-
encoding, and set the :mailheader:`Content-Transfer-Endcoding` header to
160+
encoding, and set the :mailheader:`Content-Transfer-Encoding` header to
161161
that value. Possible values for *cte* are ``quoted-printable``,
162162
``base64``, ``7bit``, ``8bit``, and ``binary``. If the input cannot be
163163
encoded in the specified encoding (for example, specifying a *cte* of
@@ -203,5 +203,5 @@ Currently the email package provides only one concrete content manager,
203203

204204
.. rubric:: Footnotes
205205

206-
.. [1] Oringally added in 3.4 as a :term:`provisional module <provisional
206+
.. [1] Originally added in 3.4 as a :term:`provisional module <provisional
207207
package>`

Doc/library/email.errors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ All defect classes are subclassed from :class:`email.errors.MessageDefect`.
102102
return false even though its content type claims to be :mimetype:`multipart`.
103103

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

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

Doc/library/email.generator.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ over channels that are not "8 bit clean".
8888
If ``cte_type`` is ``7bit``, convert the bytes with the high bit set as
8989
needed using an ASCII-compatible :mailheader:`Content-Transfer-Encoding`.
9090
That is, transform parts with non-ASCII
91-
:mailheader:`Cotnent-Transfer-Encoding`
92-
(:mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatibile
91+
:mailheader:`Content-Transfer-Encoding`
92+
(:mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatible
9393
:mailheader:`Content-Transfer-Encoding`, and encode RFC-invalid non-ASCII
9494
bytes in headers using the MIME ``unknown-8bit`` character set, thus
9595
rendering them RFC-compliant.

Doc/library/email.headerregistry.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,5 +451,5 @@ construct structured values to assign to specific headers.
451451

452452
.. rubric:: Footnotes
453453

454-
.. [1] Oringally added in 3.3 as a :term:`provisional module <provisional
454+
.. [1] Originally added in 3.3 as a :term:`provisional module <provisional
455455
package>`

Doc/library/email.message.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ message objects.
5252

5353
.. class:: EmailMessage(policy=default)
5454

55-
If *policy* is specified use the rules it specifies to udpate and serialize
55+
If *policy* is specified use the rules it specifies to update and serialize
5656
the representation of the message. If *policy* is not set, use the
5757
:class:`~email.policy.default` policy, which follows the rules of the email
5858
RFCs except for line endings (instead of the RFC mandated ``\r\n``, it uses
@@ -63,7 +63,7 @@ message objects.
6363

6464
Return the entire message flattened as a string. When optional
6565
*unixfrom* is true, the envelope header is included in the returned
66-
string. *unixfrom* defaults to ``False``. For backward compabitility
66+
string. *unixfrom* defaults to ``False``. For backward compatibility
6767
with the base :class:`~email.message.Message` class *maxheaderlen* is
6868
accepted, but defaults to ``None``, which means that by default the line
6969
length is controlled by the
@@ -213,7 +213,7 @@ message objects.
213213
del msg['subject']
214214
msg['subject'] = 'Python roolz!'
215215

216-
If the :mod:`policy` defines certain haders to be unique (as the standard
216+
If the :mod:`policy` defines certain headers to be unique (as the standard
217217
policies do), this method may raise a :exc:`ValueError` when an attempt
218218
is made to assign a value to such a header when one already exists. This
219219
behavior is intentional for consistency's sake, but do not depend on it
@@ -558,7 +558,7 @@ message objects.
558558
the part a candidate match if the value of the header is ``inline``.
559559

560560
If none of the candidates matches any of the preferences in
561-
*preferneclist*, return ``None``.
561+
*preferencelist*, return ``None``.
562562

563563
Notes: (1) For most applications the only *preferencelist* combinations
564564
that really make sense are ``('plain',)``, ``('html', 'plain')``, and the
@@ -746,6 +746,6 @@ message objects.
746746

747747
.. rubric:: Footnotes
748748

749-
.. [1] Oringally added in 3.4 as a :term:`provisional module <provisional
749+
.. [1] Originally added in 3.4 as a :term:`provisional module <provisional
750750
package>`. Docs for legacy message class moved to
751751
:ref:`compat32_message`.

Doc/library/email.mime.rst

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

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

Doc/library/email.parser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ message body, instead setting the payload to the raw body.
139139
.. class:: BytesParser(_class=None, *, policy=policy.compat32)
140140

141141
Create a :class:`BytesParser` instance. The *_class* and *policy*
142-
arguments have the same meaning and sematnics as the *_factory*
142+
arguments have the same meaning and semantics as the *_factory*
143143
and *policy* arguments of :class:`BytesFeedParser`.
144144

145145
Note: **The policy keyword should always be specified**; The default will

Doc/library/email.policy.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ added matters. To illustrate::
276276
Called when a header is added to an :class:`~email.message.EmailMessage`
277277
or :class:`~email.message.Message` object. If the returned value is not
278278
``0`` or ``None``, and there are already a number of headers with the
279-
name *name* greather than or equal to the value returned, a
279+
name *name* greater than or equal to the value returned, a
280280
:exc:`ValueError` is raised.
281281

282282
Because the default behavior of ``Message.__setitem__`` is to append the
@@ -533,7 +533,7 @@ more closely to the RFCs relevant to their domains.
533533

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

@@ -647,5 +647,5 @@ The header objects and their attributes are described in
647647

648648
.. rubric:: Footnotes
649649

650-
.. [1] Oringally added in 3.3 as a :term:`provisional feature <provisional
650+
.. [1] Originally added in 3.3 as a :term:`provisional feature <provisional
651651
package>`.

Doc/library/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ The following exceptions are the exceptions that are usually raised.
243243

244244
.. note::
245245

246-
It should not be used to indicate that an operater or method is not
246+
It should not be used to indicate that an operator or method is not
247247
meant to be supported at all -- in that case either leave the operator /
248248
method undefined or, if a subclass, set it to :data:`None`.
249249

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/turtle.rst

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

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

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)

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ which are used to control the execution of a generator function.
636636
without yielding another value, an :exc:`StopAsyncIteration` exception is
637637
raised by the awaitable.
638638
If the generator function does not catch the passed-in exception, or
639-
raises a different exception, then when the awaitalbe is run that exception
639+
raises a different exception, then when the awaitable is run that exception
640640
propagates to the caller of the awaitable.
641641

642642
.. index:: exception: GeneratorExit

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

0 commit comments

Comments
 (0)