Skip to content

Commit f4672e2

Browse files
[3.11] chore: fix typos (GH-116345) (#116375)
Co-authored-by: cui fliter <[email protected]> (cherry picked from commit e7ba6e9)
1 parent fa670a5 commit f4672e2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Doc/library/idle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ in an editor window.
604604
The editing features described in previous subsections work when entering
605605
code interactively. IDLE's Shell window also responds to the following:
606606

607-
* :kbd:`C-c` attemps to interrupt statement execution (but may fail).
607+
* :kbd:`C-c` attempts to interrupt statement execution (but may fail).
608608

609609
* :kbd:`C-d` closes Shell if typed at a ``>>>`` prompt.
610610

Lib/test/libregrtest/run_workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def _run_process(self, runtests: WorkerRunTests, output_fd: int,
209209
self._popen = None
210210

211211
def create_stdout(self, stack: contextlib.ExitStack) -> TextIO:
212-
"""Create stdout temporay file (file descriptor)."""
212+
"""Create stdout temporary file (file descriptor)."""
213213

214214
if MS_WINDOWS:
215215
# gh-95027: When stdout is not a TTY, Python uses the ANSI code

Lib/test/libregrtest/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def get_work_dir(parent_dir: StrPath, worker: bool = False) -> StrPath:
414414
# the tests. The name of the dir includes the pid to allow parallel
415415
# testing (see the -j option).
416416
# Emscripten and WASI have stubbed getpid(), Emscripten has only
417-
# milisecond clock resolution. Use randint() instead.
417+
# millisecond clock resolution. Use randint() instead.
418418
if support.is_emscripten or support.is_wasi:
419419
nounce = random.randint(0, 1_000_000)
420420
else:

Lib/test/test_baseexception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Value(str):
129129

130130
d[HashThisKeyWillClearTheDict()] = Value() # refcount of Value() is 1 now
131131

132-
# Exception.__setstate__ should aquire a strong reference of key and
132+
# Exception.__setstate__ should acquire a strong reference of key and
133133
# value in the dict. Otherwise, Value()'s refcount would go below
134134
# zero in the tp_hash call in PyObject_SetAttr(), and it would cause
135135
# crash in GC.

Tools/scripts/stable_abi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def check_private_names(manifest):
599599
if name.startswith('_') and not item.abi_only:
600600
raise ValueError(
601601
f'`{name}` is private (underscore-prefixed) and should be '
602-
+ 'removed from the stable ABI list or or marked `abi_only`')
602+
+ 'removed from the stable ABI list or marked `abi_only`')
603603

604604
def check_dump(manifest, filename):
605605
"""Check that manifest.dump() corresponds to the data.

0 commit comments

Comments
 (0)