Skip to content

Commit ea298e1

Browse files
bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) (GH-26539)
(cherry picked from commit dda9ecb) Co-authored-by: Irit Katriel <[email protected]>
1 parent de58b31 commit ea298e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/contextlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Functions and classes provided:
191191
.. function:: suppress(*exceptions)
192192

193193
Return a context manager that suppresses any of the specified exceptions
194-
if they are raised in the body of a :keyword:`!with` statement and then
194+
if they occur in the body of a :keyword:`!with` statement and then
195195
resumes execution with the first statement following the end of the
196196
:keyword:`!with` statement.
197197

0 commit comments

Comments
 (0)