Skip to content

Commit 0be894b

Browse files
committed
Issue python#27895: Spelling fixes (Contributed by Ville Skyttä).
1 parent be8da9c commit 0be894b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+70
-70
lines changed

Doc/library/email.contentmanager.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,5 +433,5 @@ Currently the email package provides only one concrete content manager,
433433

434434
If *headers* is specified and is a list of strings of the form
435435
``headername: headervalue`` or a list of ``header`` objects
436-
(distinguised from strings by having a ``name`` attribute), add the
436+
(distinguished from strings by having a ``name`` attribute), add the
437437
headers to *msg*.

Doc/library/smtpd.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ SMTPServer Objects
4545
dictionary is a suitable value). If not specified the :mod:`asyncore`
4646
global socket map is used.
4747

48-
*enable_SMTPUTF8* determins whether the ``SMTPUTF8`` extension (as defined
48+
*enable_SMTPUTF8* determines whether the ``SMTPUTF8`` extension (as defined
4949
in :RFC:`6531`) should be enabled. The default is ``False``. If set to
5050
``True``, *decode_data* must be ``False`` (otherwise an error is raised).
5151
When ``True``, ``SMTPUTF8`` is accepted as a parameter to the ``MAIL``
@@ -162,7 +162,7 @@ SMTPChannel Objects
162162
accepted in a ``DATA`` command. A value of ``None`` or ``0`` means no
163163
limit.
164164

165-
*enable_SMTPUTF8* determins whether the ``SMTPUTF8`` extension (as defined
165+
*enable_SMTPUTF8* determines whether the ``SMTPUTF8`` extension (as defined
166166
in :RFC:`6531`) should be enabled. The default is ``False``. A
167167
:exc:`ValueError` is raised if both *enable_SMTPUTF8* and *decode_data* are
168168
set to ``True`` at the same time.

Doc/whatsnew/3.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ ssl
19541954
:attr:`~ssl.OP_NO_COMPRESSION` can be used to disable compression.
19551955
(Contributed by Antoine Pitrou in :issue:`13634`.)
19561956

1957-
* Support has been added for the Next Procotol Negotiation extension using
1957+
* Support has been added for the Next Protocol Negotiation extension using
19581958
the :meth:`ssl.SSLContext.set_npn_protocols` method.
19591959
(Contributed by Colin Marc in :issue:`14204`.)
19601960

Include/abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
458458
/* old buffer API
459459
FIXME: usage of these should all be replaced in Python itself
460460
but for backwards compatibility we will implement them.
461-
Their usage without a corresponding "unlock" mechansim
461+
Their usage without a corresponding "unlock" mechanism
462462
may create issues (but they would already be there). */
463463

464464
PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,

Include/pymath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern double pow(double, double);
3737
#endif /* __STDC__ */
3838
#endif /* _MSC_VER */
3939

40-
/* High precision defintion of pi and e (Euler)
40+
/* High precision definition of pi and e (Euler)
4141
* The values are taken from libc6's math.h.
4242
*/
4343
#ifndef Py_MATH_PIl

Lib/asyncio/streams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def read(self, n=-1):
590590
bytes. If the EOF was received and the internal buffer is empty, return
591591
an empty bytes object.
592592
593-
If n is zero, return empty bytes object immediatelly.
593+
If n is zero, return empty bytes object immediately.
594594
595595
If n is positive, this function try to read `n` bytes, and may return
596596
less or equal bytes than requested, but at least one byte. If EOF was

Lib/concurrent/futures/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# interpreter to exit when there are still idle processes in a
6464
# ProcessPoolExecutor's process pool (i.e. shutdown() was not called). However,
6565
# allowing workers to die with the interpreter has two undesirable properties:
66-
# - The workers would still be running during interpretor shutdown,
66+
# - The workers would still be running during interpreter shutdown,
6767
# meaning that they would fail in unpredictable ways.
6868
# - The workers could be killed while evaluating a work item, which could
6969
# be bad if the callable being evaluated has external side-effects e.g.

Lib/concurrent/futures/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# to exit when there are still idle threads in a ThreadPoolExecutor's thread
1717
# pool (i.e. shutdown() was not called). However, allowing workers to die with
1818
# the interpreter has two undesirable properties:
19-
# - The workers would still be running during interpretor shutdown,
19+
# - The workers would still be running during interpreter shutdown,
2020
# meaning that they would fail in unpredictable ways.
2121
# - The workers could be killed while evaluating a work item, which could
2222
# be bad if the callable being evaluated has external side-effects e.g.

Lib/distutils/tests/test_msvc9compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def test_reg_class(self):
125125
self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
126126

127127
# looking for values that should exist on all
128-
# windows registeries versions.
128+
# windows registry versions.
129129
path = r'Control Panel\Desktop'
130130
v = Reg.get_value(path, 'dragfullwindows')
131131
self.assertIn(v, ('0', '1', '2'))

Lib/email/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def iter_attachments(self):
10431043
yield from parts
10441044
return
10451045
# Otherwise we more or less invert the remaining logic in get_body.
1046-
# This only really works in edge cases (ex: non-text relateds or
1046+
# This only really works in edge cases (ex: non-text related or
10471047
# alternatives) if the sending agent sets content-disposition.
10481048
seen = [] # Only skip the first example of each candidate type.
10491049
for part in parts:

0 commit comments

Comments
 (0)