Fix typos in comments and test code (#122846) · python/cpython@253c6a0 · GitHub
Skip to content

Commit 253c6a0

Browse files
authored
Fix typos in comments and test code (#122846)
1 parent 9375b9c commit 253c6a0

18 files changed

Lines changed: 28 additions & 28 deletions

File tree

Lib/_pylong.py

Lines changed: 4 additions & 4 deletions

Lib/_pyrepl/completing_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def build_menu(
9191
# D E F B E
9292
# G C F
9393
#
94-
# "fill" the table with empty words, so we always have the same amout
94+
# "fill" the table with empty words, so we always have the same amount
9595
# of rows for each column
9696
missing = cols*rows - len(wordlist)
9797
wordlist = wordlist + ['']*missing

Lib/_pyrepl/unix_console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def add_baudrate_if_supported(dictionary: dict[int, int], rate: int) -> None:
109109
try:
110110
poll: type[select.poll] = select.poll
111111
except AttributeError:
112-
# this is exactly the minumum necessary to support what we
112+
# this is exactly the minimum necessary to support what we
113113
# do with poll objects
114114
class MinimalPoll:
115115
def __init__(self):
@@ -613,7 +613,7 @@ def __write_changed_line(self, y, oldline, newline, px_coord):
613613

614614
# reuse the oldline as much as possible, but stop as soon as we
615615
# encounter an ESCAPE, because it might be the start of an escape
616-
# sequene
616+
# sequence
617617
while (
618618
x_coord < minlen
619619
and oldline[x_pos] == newline[x_pos]

Lib/_pyrepl/windows_console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def __write_changed_line(
231231

232232
# reuse the oldline as much as possible, but stop as soon as we
233233
# encounter an ESCAPE, because it might be the start of an escape
234-
# sequene
234+
# sequence
235235
while (
236236
x_coord < minlen
237237
and oldline[x_pos] == newline[x_pos]

Lib/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def _init_fn(fields, std_fields, kw_only_fields, frozen, has_post_init,
656656
if kw_only_fields:
657657
# Add the keyword-only args. Because the * can only be added if
658658
# there's at least one keyword-only arg, there needs to be a test here
659-
# (instead of just concatenting the lists together).
659+
# (instead of just concatenating the lists together).
660660
_init_params += ['*']
661661
_init_params += [_init_param(f) for f in kw_only_fields]
662662
func_builder.add_fn('__init__',

Lib/test/libregrtest/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def _run_tests(self, selected: TestTuple, tests: TestList | None) -> int:
536536
self._run_tests_mp(runtests, self.num_workers)
537537
else:
538538
# gh-117783: don't immortalize deferred objects when tracking
539-
# refleaks. Only releveant for the free-threaded build.
539+
# refleaks. Only relevant for the free-threaded build.
540540
with suppress_immortalization(runtests.hunt_refleak):
541541
self.run_tests_sequentially(runtests)
542542

Lib/test/libregrtest/single.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def run_single_test(test_name: TestName, runtests: RunTests) -> TestResult:
305305
pgo = runtests.pgo
306306
try:
307307
# gh-117783: don't immortalize deferred objects when tracking
308-
# refleaks. Only releveant for the free-threaded build.
308+
# refleaks. Only relevant for the free-threaded build.
309309
with support.suppress_immortalization(runtests.hunt_refleak):
310310
_runtest(result, runtests)
311311
except:

Lib/test/support/asynchat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TODO: This module was deprecated and removed from CPython 3.12
2-
# Now it is a test-only helper. Any attempts to rewrite exising tests that
2+
# Now it is a test-only helper. Any attempts to rewrite existing tests that
33
# are using this module and remove it completely are appreciated!
44
# See: https://github.com/python/cpython/issues/72719
55

Lib/test/support/asyncore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TODO: This module was deprecated and removed from CPython 3.12
2-
# Now it is a test-only helper. Any attempts to rewrite exising tests that
2+
# Now it is a test-only helper. Any attempts to rewrite existing tests that
33
# are using this module and remove it completely are appreciated!
44
# See: https://github.com/python/cpython/issues/72719
55

Lib/test/support/bytecode_helper.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)