[Python-checkins] [3.10] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94080)
ambv
webhook-mailer at python.org
Tue Jun 21 15:39:17 EDT 2022
https://github.com/python/cpython/commit/9ab245f8ca84e75c6d11d3683f498427b1425366
commit: 9ab245f8ca84e75c6d11d3683f498427b1425366
branch: 3.10
author: Łukasz Langa <lukasz at langa.pl>
committer: ambv <lukasz at langa.pl>
date: 2022-06-21T21:39:08+02:00
summary:
[3.10] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94080)
Closes GH-93675
(cherry picked from commit 830513754d081619b2d72db17770627312072fa5)
Co-authored-by: luzpaz <luzpaz at users.noreply.github.com>
files:
M Doc/library/signal.rst
M Doc/reference/expressions.rst
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst
index 0aa5996b89423..e763e16d02a3e 100644
--- a/Doc/library/signal.rst
+++ b/Doc/library/signal.rst
@@ -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
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 1f8b08f70d504..b8c8d5fe3e33d 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -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
More information about the Python-checkins
mailing list