[Python-checkins] bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492)

iritkatriel webhook-mailer at python.org
Fri Jun 4 18:08:05 EDT 2021


https://github.com/python/cpython/commit/dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1
commit: dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1
branch: main
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2021-06-04T23:07:57+01:00
summary:

bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492)

files:
M Doc/library/contextlib.rst

diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index 98df29277e3b7..c9065be32e638 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -267,7 +267,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.
 



More information about the Python-checkins mailing list