Skip to content

Commit

Permalink
bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (G…
Browse files Browse the repository at this point in the history
…H-26492) (GH-26539)

(cherry picked from commit dda9ecb)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
  • Loading branch information
miss-islington and iritkatriel authored Jun 4, 2021
1 parent de58b31 commit ea298e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/contextlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit ea298e1

Please sign in to comment.