]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93675: Fix typos in `Doc/` (GH-93676)
authorluzpaz <luzpaz@users.noreply.github.com>
Tue, 21 Jun 2022 19:10:45 +0000 (15:10 -0400)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 19:10:45 +0000 (21:10 +0200)
Closes #93675

Doc/library/concurrent.futures.rst
Doc/library/contextlib.rst
Doc/library/signal.rst
Doc/library/socket.rst
Doc/reference/expressions.rst
Doc/tools/rstlint.py

index 99703ff3051d4798e8b5f9aa4d3a4e39798039f2..8efbf0a3d59554320fd076d3352bb4324797d4a6 100644 (file)
@@ -257,7 +257,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
    replaced with a fresh worker process. By default *max_tasks_per_child* is
    ``None`` which means worker processes will live as long as the pool. When
    a max is specified, the "spawn" multiprocessing start method will be used by
-   default in absense of a *mp_context* parameter. This feature is incompatible
+   default in absence of a *mp_context* parameter. This feature is incompatible
    with the "fork" start method.
 
    .. versionchanged:: 3.3
index 84c4ca098c6015482a89a0b1872fa4a8f00a2886..2d28fb35a9e316264cddf35c0512084623a38e28 100644 (file)
@@ -361,7 +361,7 @@ Functions and classes provided:
    As this changes a global state, the working directory, it is not suitable
    for use in most threaded or async contexts. It is also not suitable for most
    non-linear code execution, like generators, where the program execution is
-   temporarily relinquished -- unless explicitely desired, you should not yield
+   temporarily relinquished -- unless explicitly desired, you should not yield
    when this context manager is active.
 
    This is a simple wrapper around :func:`~os.chdir`, it changes the current
index 36bb4a98da132bcae2186743f9bfdcee8d111457..d850639d242abef05cdfc1cd216a6aedd238ac71 100644 (file)
@@ -739,7 +739,7 @@ To illustrate this issue, consider the following code::
         def __enter__(self):
             # If KeyboardInterrupt occurs here, everything is fine
             self.lock.acquire()
-            # If KeyboardInterrupt occcurs here, __exit__ will not be called
+            # If KeyboardInterrupt occurs here, __exit__ will not be called
             ...
             # KeyboardInterrupt could occur just before the function returns
 
index 49ea62f46ce97d4b652e595f4433e0d61a7922c6..fc8a56e7b41ba4b102b8d58589ce09b74ab2e88b 100644 (file)
@@ -242,7 +242,7 @@ created.  Socket addresses are represented as follows:
     child partitions.
   - ``HV_GUID_LOOPBACK`` - Used as a target to itself.
   - ``HV_GUID_PARENT`` - When used as a bind accepts connection from the parent
-    partition. When used as an address target it will connect to the parent parition.
+    partition. When used as an address target it will connect to the parent partition.
 
   The ``service_id`` is the service identifier of the registered service.
 
index 1f461e3fed8e5754672f144a4ca44de84afac709..6bf21a7dde49a0a4a9ef68244f87e662213835c3 100644 (file)
@@ -573,7 +573,7 @@ is already executing raises a :exc:`ValueError` exception.
    In typical use, this is called with a single exception instance similar to the
    way the :keyword:`raise` keyword is used.
 
-   For backwards compatability, however, the second signature is
+   For backwards compatibility, however, the second signature is
    supported, following a convention from older versions of Python.
    The *type* argument should be an exception class, and *value*
    should be an exception instance. If the *value* is not provided, the
index d1c53dcb1a698ecf350e234b92c3d7051766cff2..4ea68ef3b030c816267ff8c2cbf4585c802b6478 100644 (file)
@@ -130,7 +130,7 @@ role_with_no_backticks = re.compile(r"%s[^` ]" % all_roles)
 
 # Find role glued with another word like:
 # the:c:func:`PyThreadState_LeaveTracing` function.
-# instad of:
+# instead of:
 # the :c:func:`PyThreadState_LeaveTracing` function.
 role_glued_with_word = re.compile(r"[a-zA-Z]%s" % all_roles)