Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84b023d

Browse filesBrowse files
[3.12] chore: fix typos (#116345) (#116370)
Co-authored-by: cui fliter <imcusg@gmail.com> (cherry picked from commit e7ba6e9)
1 parent 55faaa5 commit 84b023d
Copy full SHA for 84b023d

File tree

Expand file treeCollapse file tree

10 files changed

+11
-11
lines changed
Filter options
Expand file treeCollapse file tree

10 files changed

+11
-11
lines changed

‎Doc/library/idle.rst

Copy file name to clipboardExpand all lines: Doc/library/idle.rst
+1-1Lines 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

‎Include/cpython/code.h

Copy file name to clipboardExpand all lines: Include/cpython/code.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ typedef struct {
7575
PyObject *_co_freevars;
7676
} _PyCoCached;
7777

78-
/* Ancilliary data structure used for instrumentation.
78+
/* Ancillary data structure used for instrumentation.
7979
Line instrumentation creates an array of
8080
these. One entry per code unit.*/
8181
typedef struct {

‎Include/internal/pycore_instruments.h

Copy file name to clipboardExpand all lines: Include/internal/pycore_instruments.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern "C" {
4040
#define PY_MONITORING_EVENT_RERAISE 14
4141

4242

43-
/* Ancilliary events */
43+
/* Ancillary events */
4444

4545
#define PY_MONITORING_EVENT_C_RETURN 15
4646
#define PY_MONITORING_EVENT_C_RAISE 16

‎Lib/asyncio/tasks.py

Copy file name to clipboardExpand all lines: Lib/asyncio/tasks.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ async def wait_for(fut, timeout):
480480
481481
If the wait is cancelled, the task is also cancelled.
482482
483-
If the task supresses the cancellation and returns a value instead,
483+
If the task suppresses the cancellation and returns a value instead,
484484
that value is returned.
485485
486486
This function is a coroutine.

‎Lib/importlib/util.py

Copy file name to clipboardExpand all lines: Lib/importlib/util.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class _incompatible_extension_module_restrictions:
146146
147147
You can get the same effect as this function by implementing the
148148
basic interface of multi-phase init (PEP 489) and lying about
149-
support for mulitple interpreters (or per-interpreter GIL).
149+
support for multiple interpreters (or per-interpreter GIL).
150150
"""
151151

152152
def __init__(self, *, disable_check):

‎Lib/test/libregrtest/run_workers.py

Copy file name to clipboardExpand all lines: Lib/test/libregrtest/run_workers.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: Lib/test/libregrtest/utils.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def get_work_dir(parent_dir: StrPath, worker: bool = False) -> StrPath:
419419
# the tests. The name of the dir includes the pid to allow parallel
420420
# testing (see the -j option).
421421
# Emscripten and WASI have stubbed getpid(), Emscripten has only
422-
# milisecond clock resolution. Use randint() instead.
422+
# millisecond clock resolution. Use randint() instead.
423423
if support.is_emscripten or support.is_wasi:
424424
nounce = random.randint(0, 1_000_000)
425425
else:

‎Lib/test/test_asyncio/test_waitfor.py

Copy file name to clipboardExpand all lines: Lib/test/test_asyncio/test_waitfor.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ async def test_cancel_wait_for(self):
249249
await self._test_cancel_wait_for(60.0)
250250

251251
async def test_wait_for_cancel_suppressed(self):
252-
# GH-86296: Supressing CancelledError is discouraged
253-
# but if a task subpresses CancelledError and returns a value,
252+
# GH-86296: Suppressing CancelledError is discouraged
253+
# but if a task suppresses CancelledError and returns a value,
254254
# `wait_for` should return the value instead of raising CancelledError.
255255
# This is the same behavior as `asyncio.timeout`.
256256

‎Lib/test/test_baseexception.py

Copy file name to clipboardExpand all lines: Lib/test/test_baseexception.py
+1-1Lines 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/build/stable_abi.py

Copy file name to clipboardExpand all lines: Tools/build/stable_abi.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def check_private_names(manifest):
601601
if name.startswith('_') and not item.abi_only:
602602
raise ValueError(
603603
f'`{name}` is private (underscore-prefixed) and should be '
604-
+ 'removed from the stable ABI list or or marked `abi_only`')
604+
+ 'removed from the stable ABI list or marked `abi_only`')
605605

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.