bpo-44279: [doc] reword contextlib.suppress documentation (GH-26428)

This commit is contained in:
MapleCCC 2021-06-02 04:15:30 +08:00 committed by GitHub
parent 39dd141a4b
commit 87272b70f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,8 +267,9 @@ Functions and classes provided:
.. function:: suppress(*exceptions)
Return a context manager that suppresses any of the specified exceptions
if they occur in the body of a with statement and then resumes execution
with the first statement following the end of the with statement.
if they are raised in the body of a :keyword:`!with` statement and then
resumes execution with the first statement following the end of the
:keyword:`!with` statement.
As with any other mechanism that completely suppresses exceptions, this
context manager should be used only to cover very specific errors where