summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-06-04 15:10:07 -0700
committerGitHub <noreply@github.com>2021-06-04 23:10:07 +0100
commit1065ba66b535b786d6dc5f7d912c6486d9a834ae (patch)
tree25ac96a6ae65f4cbdb00f7ed089f81650dd38b5b
parent067d6d46575b5cf30bbf7c812defee1517106a34 (diff)
downloadcpython-git-1065ba66b535b786d6dc5f7d912c6486d9a834ae.tar.gz
bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) (GH-26538)
(cherry picked from commit dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
-rw-r--r--Doc/library/contextlib.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index 98df29277e..c9065be32e 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.