From edc0c89d3a2bdddb65c6ec407a33879dd0d43754 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Tue, 21 Jun 2022 15:10:45 -0400 Subject: [PATCH] [3.10] gh-93675: Fix typos in `Doc/` (GH-93676) Closes GH-93675 (cherry picked from commit 830513754d081619b2d72db17770627312072fa5) Co-authored-by: luzpaz --- Doc/library/signal.rst | 2 +- Doc/reference/expressions.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index 0aa5996b89423b..e763e16d02a3ea 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 1f8b08f70d504e..b8c8d5fe3e33d6 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy