Skip to content

Commit

Permalink
PEP 654: Fix the output of two examples (#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored Feb 21, 2022
1 parent 501cb5c commit 0cac70c
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions pep-0654.rst
Original file line number Diff line number Diff line change
Expand Up @@ -893,19 +893,16 @@ chaining:
...
| ExceptionGroup
+-+---------------- 1 ----------------
| ExceptionGroup
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "<stdin>", line 2, in <module>
| TypeError: bad type
+------------------------------------
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "<stdin>", line 4, in <module>
| ValueError: bad value
| File "<stdin>", line 2, in <module>
| TypeError: bad type
+------------------------------------
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
ValueError: bad value
>>>
Expand All @@ -921,12 +918,9 @@ other clauses from the same ``try`` statement:
... except* ValueError:
... print('never')
...
| ExceptionGroup
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "<stdin>", line 4, in <module>
| ValueError: 2
+----------------------------------------
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
ValueError: 2
>>>
Expand Down

0 comments on commit 0cac70c

Please sign in to comment.