bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492)
This commit is contained in:
parent
2780df4781
commit
dda9ecbfec
@ -267,7 +267,7 @@ Functions and classes provided:
|
|||||||
.. function:: suppress(*exceptions)
|
.. function:: suppress(*exceptions)
|
||||||
|
|
||||||
Return a context manager that suppresses any of the specified 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
|
resumes execution with the first statement following the end of the
|
||||||
:keyword:`!with` statement.
|
:keyword:`!with` statement.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user