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

[3.12] chore: fix typos (#116345) #116370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 Doc/library/idle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ in an editor window.
The editing features described in previous subsections work when entering
code interactively. IDLE's Shell window also responds to the following:

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

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

Expand Down
2 changes: 1 addition & 1 deletion 2 Include/cpython/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ typedef struct {
PyObject *_co_freevars;
} _PyCoCached;

/* Ancilliary data structure used for instrumentation.
/* Ancillary data structure used for instrumentation.
Line instrumentation creates an array of
these. One entry per code unit.*/
typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion 2 Include/internal/pycore_instruments.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extern "C" {
#define PY_MONITORING_EVENT_RERAISE 14


/* Ancilliary events */
/* Ancillary events */

#define PY_MONITORING_EVENT_C_RETURN 15
#define PY_MONITORING_EVENT_C_RAISE 16
Expand Down
2 changes: 1 addition & 1 deletion 2 Lib/asyncio/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ async def wait_for(fut, timeout):

If the wait is cancelled, the task is also cancelled.

If the task supresses the cancellation and returns a value instead,
If the task suppresses the cancellation and returns a value instead,
that value is returned.

This function is a coroutine.
Expand Down
2 changes: 1 addition & 1 deletion 2 Lib/importlib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class _incompatible_extension_module_restrictions:

You can get the same effect as this function by implementing the
basic interface of multi-phase init (PEP 489) and lying about
support for mulitple interpreters (or per-interpreter GIL).
support for multiple interpreters (or per-interpreter GIL).
"""

def __init__(self, *, disable_check):
Expand Down
2 changes: 1 addition & 1 deletion 2 Lib/test/libregrtest/run_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _run_process(self, runtests: WorkerRunTests, output_fd: int,
self._popen = None

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

if MS_WINDOWS:
# gh-95027: When stdout is not a TTY, Python uses the ANSI code
Expand Down
2 changes: 1 addition & 1 deletion 2 Lib/test/libregrtest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def get_work_dir(parent_dir: StrPath, worker: bool = False) -> StrPath:
# the tests. The name of the dir includes the pid to allow parallel
# testing (see the -j option).
# Emscripten and WASI have stubbed getpid(), Emscripten has only
# milisecond clock resolution. Use randint() instead.
# millisecond clock resolution. Use randint() instead.
if support.is_emscripten or support.is_wasi:
nounce = random.randint(0, 1_000_000)
else:
Expand Down
4 changes: 2 additions & 2 deletions 4 Lib/test/test_asyncio/test_waitfor.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ async def test_cancel_wait_for(self):
await self._test_cancel_wait_for(60.0)

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

Expand Down
2 changes: 1 addition & 1 deletion 2 Lib/test/test_baseexception.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Value(str):

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

# Exception.__setstate__ should aquire a strong reference of key and
# Exception.__setstate__ should acquire a strong reference of key and
# value in the dict. Otherwise, Value()'s refcount would go below
# zero in the tp_hash call in PyObject_SetAttr(), and it would cause
# crash in GC.
Expand Down
2 changes: 1 addition & 1 deletion 2 Tools/build/stable_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def check_private_names(manifest):
if name.startswith('_') and not item.abi_only:
raise ValueError(
f'`{name}` is private (underscore-prefixed) and should be '
+ 'removed from the stable ABI list or or marked `abi_only`')
+ 'removed from the stable ABI list or marked `abi_only`')

def check_dump(manifest, filename):
"""Check that manifest.dump() corresponds to the data.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.