Skip to content

Commit 49687b0

Browse files
ambvluzpaz
andauthored
[3.11] gh-93675: Fix typos in Doc/ (GH-93676) (GH-94079)
Closes GH-93675 (cherry picked from commit 8305137) Co-authored-by: luzpaz <[email protected]>
1 parent 63e127f commit 49687b0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Doc/library/concurrent.futures.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
257257
replaced with a fresh worker process. By default *max_tasks_per_child* is
258258
``None`` which means worker processes will live as long as the pool. When
259259
a max is specified, the "spawn" multiprocessing start method will be used by
260-
default in absense of a *mp_context* parameter. This feature is incompatible
260+
default in absence of a *mp_context* parameter. This feature is incompatible
261261
with the "fork" start method.
262262

263263
.. versionchanged:: 3.3

Doc/library/contextlib.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ Functions and classes provided:
361361
As this changes a global state, the working directory, it is not suitable
362362
for use in most threaded or async contexts. It is also not suitable for most
363363
non-linear code execution, like generators, where the program execution is
364-
temporarily relinquished -- unless explicitely desired, you should not yield
364+
temporarily relinquished -- unless explicitly desired, you should not yield
365365
when this context manager is active.
366366

367367
This is a simple wrapper around :func:`~os.chdir`, it changes the current

Doc/library/signal.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ To illustrate this issue, consider the following code::
739739
def __enter__(self):
740740
# If KeyboardInterrupt occurs here, everything is fine
741741
self.lock.acquire()
742-
# If KeyboardInterrupt occcurs here, __exit__ will not be called
742+
# If KeyboardInterrupt occurs here, __exit__ will not be called
743743
...
744744
# KeyboardInterrupt could occur just before the function returns
745745

Doc/reference/expressions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ is already executing raises a :exc:`ValueError` exception.
573573
In typical use, this is called with a single exception instance similar to the
574574
way the :keyword:`raise` keyword is used.
575575

576-
For backwards compatability, however, the second signature is
576+
For backwards compatibility, however, the second signature is
577577
supported, following a convention from older versions of Python.
578578
The *type* argument should be an exception class, and *value*
579579
should be an exception instance. If the *value* is not provided, the

Doc/tools/rstlint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130

131131
# Find role glued with another word like:
132132
# the:c:func:`PyThreadState_LeaveTracing` function.
133-
# instad of:
133+
# instead of:
134134
# the :c:func:`PyThreadState_LeaveTracing` function.
135135
role_glued_with_word = re.compile(r"[a-zA-Z]%s" % all_roles)
136136

0 commit comments

Comments
 (0)