summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Kaufeld <opensource@joekaufeld.com>2023-07-22 12:19:30 (GMT)
committerGitHub <noreply@github.com>2023-07-22 12:19:30 (GMT)
commited491d9f782480fb00535abcf667027e0e323287 (patch)
treee58b527ce4d974ec056671db452be2f6f6154553
parent4a1026d7647c084b0dc80dd49163d16ba12a2e55 (diff)
downloadcpython-ed491d9f782480fb00535abcf667027e0e323287.zip
cpython-ed491d9f782480fb00535abcf667027e0e323287.tar.gz
cpython-ed491d9f782480fb00535abcf667027e0e323287.tar.bz2
Reformat code block to make it easier to read (#106965)
-rw-r--r--Doc/tutorial/errors.rst19
1 files changed, 14 insertions, 5 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index 6419ff6..8a207c3 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -535,11 +535,20 @@ of a certain type while letting all other exceptions propagate to
other clauses and eventually to be reraised. ::
>>> def f():
- ... raise ExceptionGroup("group1",
- ... [OSError(1),
- ... SystemError(2),
- ... ExceptionGroup("group2",
- ... [OSError(3), RecursionError(4)])])
+ ... raise ExceptionGroup(
+ ... "group1",
+ ... [
+ ... OSError(1),
+ ... SystemError(2),
+ ... ExceptionGroup(
+ ... "group2",
+ ... [
+ ... OSError(3),
+ ... RecursionError(4)
+ ... ]
+ ... )
+ ... ]
+ ... )
...
>>> try:
... f()