Fix typos in multiple `.rst` files (#1668) · pythoncapi/cpython@3378b20 · GitHub
Skip to content

Commit 3378b20

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

18 files changed

Lines changed: 31 additions & 31 deletions

Doc/c-api/exceptions.rst

Lines changed: 4 additions & 4 deletions

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

0 commit comments

Comments
 (0)