]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94080)
authorŁukasz Langa <lukasz@langa.pl>
Tue, 21 Jun 2022 19:39:08 +0000 (21:39 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 19:39:08 +0000 (21:39 +0200)
Closes GH-93675
(cherry picked from commit 830513754d081619b2d72db17770627312072fa5)

Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
Doc/library/signal.rst
Doc/reference/expressions.rst

index 0aa5996b89423b34f7ffd759f3a2983f575ab8e3..e763e16d02a3ea75140bd3a060e8097aa07ef8fd 100644 (file)
@@ -703,7 +703,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 1f8b08f70d504e5b5311e054c1bcce388d1fa5e2..b8c8d5fe3e33d686f9af6f29b591106fc025b50b 100644 (file)
@@ -568,7 +568,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