8000 Reformat code block to make it easier to read (#106965) · python/cpython@ed491d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed491d9

Browse files
authored
Reformat code block to make it easier to read (#106965)
1 parent 4a1026d commit ed491d9

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Doc/tutorial/errors.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,20 @@ of a certain type while letting all other exceptions propagate to
535535
other clauses and eventually to be reraised. ::
536536

537537
>>> def f():
538-
... raise ExceptionGroup("group1",
539-
... [OSError(1),
540-
... SystemError(2),
541-
... ExceptionGroup("group2",
542-
... [OSError(3), RecursionError(4)])])
538+
... raise ExceptionGroup(
539+
... "group1",
540+
... [
541+
... OSError(1),
542+
... SystemError(2),
543+
... ExceptionGroup(
544+
... "group2",
545+
... [
546+
... OSError(3),
547+
... RecursionError(4)
548+
... ]
549+
... )
550+
... ]
551+
... )
543552
...
544553
>>> try:
545554
... f()

0 commit comments

Comments
 (0)
0