10000 Fix typos in multiple files (GH-26689) · jdevries3133/cpython@50aee65 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50aee65

Browse files
enjoy-binbinterryjreedy
authored andcommitted
Fix typos in multiple files (pythonGH-26689)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 2a93215 commit 50aee65

24 files changed

+1023
-1023
lines changed

Lib/_aix_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def aix_platform():
4747
# type: () -> str
4848
"""
4949
AIX filesets are identified by four decimal values: V.R.M.F.
50-
V (version) and R (release) can be retreived using ``uname``
50+
V (version) and R (release) can be retrieved using ``uname``
5151
Since 2007, starting with AIX 5.3 TL7, the M value has been
5252
included with the fileset bos.rte and represents the Technology
5353
Level (TL) of AIX. The F (Fix) value also increases, but is not

Lib/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ def visit_UnaryOp(self, node):
13341334
operator_precedence = self.unop_precedence[operator]
13351335
with self.require_parens(operator_precedence, node):
13361336
self.write(operator)
1337-
# factor prefixes (+, -, ~) shouldn't be seperated
1337+
# factor prefixes (+, -, ~) shouldn't be separated
13381338
# from the value they belong, (e.g: +1 instead of + 1)
13391339
if operator_precedence is not _Precedence.FACTOR:
13401340
self.write(" ")

Lib/asyncio/proactor_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def resume_reading(self):
221221
length = self._pending_data_length
222222
self._pending_data_length = -1
223223
if length > -1:
224-
# Call the protocol methode after calling _loop_reading(),
224+
# Call the protocol method after calling _loop_reading(),
225225
# since the protocol can decide to pause reading again.
226226
self._loop.call_soon(self._data_received, self._data[:length], length)
227227

Lib/contextlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async def __aexit__(self, typ, value, traceback):
224224
# was passed to throw() and later wrapped into a RuntimeError
225225
# (see PEP 479 for sync generators; async generators also
226226
# have this behavior). But do this only if the exception wrapped
227-
# by the RuntimeError is actully Stop(Async)Iteration (see
227+
# by the RuntimeError is actually Stop(Async)Iteration (see
228228
# issue29692).
229229
if isinstance(value, (StopIteration, StopAsyncIteration)):
230230
if exc.__cause__ is value:

Lib/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ def _process_class(cls, init, repr, eq, order, unsafe_hash, frozen,
11001100

11011101

11021102
# _dataclass_getstate and _dataclass_setstate are needed for pickling frozen
1103-
# classes with slots. These could be slighly more performant if we generated
1103+
# classes with slots. These could be slightly more performant if we generated
11041104
# the code instead of iterating over fields. But that can be a project for
11051105
# another day, if performance becomes an issue.
11061106
def _dataclass_getstate(self):

Lib/http/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def send_head(self):
704704
# The test for this was added in test_httpserver.py
705705
# However, some OS platforms accept a trailingSlash as a filename
706706
# See discussion on python-dev and Issue34711 regarding
707-
# parseing and rejection of filenames with a trailing slash
707+
# parsing and rejection of filenames with a trailing slash
708708
if path.endswith("/"):
709709
self.send_error(HTTPStatus.NOT_FOUND, "File not found")
710710
return None

Lib/idlelib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
default values. For 'highlight' and 'keys', user sections augment the
1717
default sections (and must, therefore, have distinct names).
1818
19-
Throughout this module there is an emphasis on returning useable defaults
19+
Throughout this module there is an emphasis on returning usable defaults
2020
when a problem occurs in returning a requested configuration value back to
2121
idle. This is to allow IDLE to continue to function in spite of errors in
2222
the retrieval of config information. When a default is returned instead of

Lib/idlelib/history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, text):
2929
text.bind("<<history-next>>", self.history_next)
3030

3131
def history_next(self, event):
32-
"Fetch later statement; start with ealiest if cyclic."
32+
"Fetch later statement; start with earliest if cyclic."
3333
self.fetch(reverse=False)
3434
return "break"
3535

Lib/importlib/_bootstrap_external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def __hash__(self):
11781178
return hash(self.name) ^ hash(self.path)
11791179

11801180
def create_module(self, spec):
1181-
"""Create an unitialized extension module"""
1181+
"""Create an uninitialized extension module"""
11821182
module = _bootstrap._call_with_frames_removed(
11831183
_imp.create_dynamic, spec)
11841184
_bootstrap._verbose_message('extension module {!r} loaded from {!r}',

Lib/multiprocessing/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ def wait(object_list, timeout=None):
943943
return ready
944944

945945
#
946-
# Make connection and socket objects sharable if possible
946+
# Make connection and socket objects shareable if possible
947947
#
948948

949949
if sys.platform == 'win32':

0 commit comments

Comments
 (0)
0