Skip to content

Commit 61f82e0

Browse files
scopterryjreedy
authored andcommitted
Spelling fixes to docs, docstrings, and comments (GH-6374)
1 parent 0399cf9 commit 61f82e0

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed

Doc/library/email.generator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ to be using :class:`BytesGenerator`, and not :class:`Generator`.
185185
Convert any bytes with the high bit set as needed using an
186186
ASCII-compatible :mailheader:`Content-Transfer-Encoding`. That is,
187187
transform parts with non-ASCII :mailheader:`Cotnent-Transfer-Encoding`
188-
(:mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatibile
188+
(:mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatible
189189
:mailheader:`Content-Transfer-Encoding`, and encode RFC-invalid non-ASCII
190190
bytes in headers using the MIME ``unknown-8bit`` character set, thus
191191
rendering them RFC-compliant.

Doc/library/test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ The :mod:`test.support` module defines the following functions:
746746

747747
.. function:: wait_threads_exit(timeout=60.0)
748748

749-
Context manager to wait until all threads created in the ``with`` statment
749+
Context manager to wait until all threads created in the ``with`` statement
750750
exit.
751751

752752

Include/context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PyAPI_FUNC(PyContextToken *) PyContextVar_Set(
6565

6666

6767
/* Reset a variable to its previous value.
68-
Returns 0 on sucess, -1 on error.
68+
Returns 0 on success, -1 on error.
6969
*/
7070
PyAPI_FUNC(int) PyContextVar_Reset(
7171
PyContextVar *var, PyContextToken *token);

Include/internal/hamt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ PyHamtObject * _PyHamt_Without(PyHamtObject *o, PyObject *key);
8080
/* Find "key" in the "o" collection.
8181
8282
Return:
83-
- -1: An error ocurred.
83+
- -1: An error occurred.
8484
- 0: "key" wasn't found in "o".
8585
- 1: "key" is in "o"; "*val" is set to its value (a borrowed ref).
8686
*/

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
463463
z = z[:3] + z[4:]
464464
if len(z) > 5:
465465
if z[5] != ':':
466-
msg = f"Unconsistent use of : in {found_dict['z']}"
466+
msg = f"Inconsistent use of : in {found_dict['z']}"
467467
raise ValueError(msg)
468468
z = z[:5] + z[6:]
469469
hours = int(z[1:3])

Lib/idlelib/NEWS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bpo-31860: The font sample in the settings dialog is now editable.
3939
Edits persist while IDLE remains open.
4040
Patch by Serhiy Storchake and Terry Jan Reedy.
4141

42-
bpo-31858: Restrict shell prompt manipulaton to the shell.
42+
bpo-31858: Restrict shell prompt manipulation to the shell.
4343
Editor and output windows only see an empty last prompt line. This
4444
simplifies the code and fixes a minor bug when newline is inserted.
4545
Sys.ps1, if present, is read on Shell start-up, but is not set or changed.

Lib/sqlite3/test/dbapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def CheckInTransactionRO(self):
161161
self.cx.in_transaction = True
162162

163163
def CheckOpenWithPathLikeObject(self):
164-
""" Checks that we can succesfully connect to a database using an object that
164+
""" Checks that we can successfully connect to a database using an object that
165165
is PathLike, i.e. has __fspath__(). """
166166
self.addCleanup(unlink, TESTFN)
167167
class Path:

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ def _on_queue_feeder_error(e, obj):
11041104
q = SafeQueue(ctx=multiprocessing.get_context())
11051105
q.put(not_serializable_obj)
11061106

1107-
# Verify that q is still functionning correctly
1107+
# Verify that q is still functioning correctly
11081108
q.put(True)
11091109
self.assertTrue(q.get(timeout=1.0))
11101110

Lib/test/test__xxsubinterpreters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ def test_drop_close_if_unassociated(self):
10011001
interpreters.channel_recv(cid)
10021002

10031003
def test_drop_partially(self):
1004-
# XXX Is partial close too wierd/confusing?
1004+
# XXX Is partial close too weird/confusing?
10051005
cid = interpreters.channel_create()
10061006
interpreters.channel_send(cid, None)
10071007
interpreters.channel_recv(cid)

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5948,7 +5948,7 @@ def test_sendmsg_afalg_args(self):
59485948
@unittest.skipUnless(sys.platform.startswith("win"), "requires Windows")
59495949
class TestMSWindowsTCPFlags(unittest.TestCase):
59505950
knownTCPFlags = {
5951-
# avaliable since long time ago
5951+
# available since long time ago
59525952
'TCP_MAXSEG',
59535953
'TCP_NODELAY',
59545954
# available starting with Windows 10 1607

0 commit comments

Comments
 (0)