]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Fri, 4 Jun 2021 22:07:57 +0000 (23:07 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Jun 2021 22:07:57 +0000 (23:07 +0100)
Doc/library/contextlib.rst

index 98df29277e3b7d313cde2fe42b602dc22610a649..c9065be32e63862091c3dde01682e22d8b9a4ffe 100644 (file)
@@ -267,7 +267,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.