[3.12] Reformat code block to make it easier to read (GH-106965) (#107010)

(cherry picked from commit ed491d9f78)

Co-authored-by: Joe Kaufeld <opensource@joekaufeld.com>
This commit is contained in:
Miss Islington (bot) 2023-07-22 05:54:13 -07:00 committed by GitHub
parent 713590f9b2
commit e7757ab9e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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()