bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) (GH-26539)

(cherry picked from commit dda9ecbfec)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2021-06-04 15:09:45 -07:00 committed by GitHub
parent de58b319af
commit ea298e1e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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.