]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 4 Jun 2021 22:09:45 +0000 (15:09 -0700)
committerGitHub <noreply@github.com>
Fri, 4 Jun 2021 22:09:45 +0000 (23:09 +0100)
(cherry picked from commit dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Doc/library/contextlib.rst

index cfc37a63aedbf313abde992765256e1292549fd8..f87ee210550cc61a6a308d5f1164e5fbbcfe89f2 100644 (file)
@@ -191,7 +191,7 @@ Functions and classes provided:
 .. function:: suppress(*exceptions)
 
    Return a context manager that suppresses any of the specified exceptions
-   if they are raised in the body of a :keyword:`!with` statement and then
+   if they occur in the body of a :keyword:`!with` statement and then
    resumes execution with the first statement following the end of the
    :keyword:`!with` statement.