]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Reformat code block to make it easier to read (#106965)
authorJoe Kaufeld <opensource@joekaufeld.com>
Sat, 22 Jul 2023 12:19:30 +0000 (08:19 -0400)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 12:19:30 +0000 (14:19 +0200)
Doc/tutorial/errors.rst

index 6419ff621f1b3199d7f7c7ca68236167ab5cb307..8a207c385c6ab70cbe586967cc9a66b6fbfd2ad7 100644 (file)
@@ -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()