mirror of https://github.com/python/cpython.git
[3.11] Reformat code block to make it easier to read (GH-106965) (#107022)
(cherry picked from commit ed491d9f78
)
Co-authored-by: Joe Kaufeld <opensource@joekaufeld.com>
This commit is contained in:
parent
a7a973e9c7
commit
c65ca7097a
|
@ -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),
|
||||
... raise ExceptionGroup(
|
||||
... "group1",
|
||||
... [
|
||||
... OSError(1),
|
||||
... SystemError(2),
|
||||
... ExceptionGroup("group2",
|
||||
... [OSError(3), RecursionError(4)])])
|
||||
... ExceptionGroup(
|
||||
... "group2",
|
||||
... [
|
||||
... OSError(3),
|
||||
... RecursionError(4)
|
||||
... ]
|
||||
... )
|
||||
... ]
|
||||
... )
|
||||
...
|
||||
>>> try:
|
||||
... f()
|
||||
|
|
Loading…
Reference in New Issue