Skip to content

Commit 1065ba6

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

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
@@ -267,7 +267,7 @@ Functions and classes provided:
267267
.. function:: suppress(*exceptions)
268268

269269
Return a context manager that suppresses any of the specified exceptions
270-
if they are raised in the body of a :keyword:`!with` statement and then
270+
if they occur in the body of a :keyword:`!with` statement and then
271271
resumes execution with the first statement following the end of the
272272
:keyword:`!with` statement.
273273

0 commit comments

Comments
 (0)