diff --git a/pep-0654.rst b/pep-0654.rst index b5a704c4e89..7932fbafb6f 100644 --- a/pep-0654.rst +++ b/pep-0654.rst @@ -893,19 +893,16 @@ chaining: ... | ExceptionGroup +-+---------------- 1 ---------------- - | ExceptionGroup - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "", line 2, in - | TypeError: bad type - +------------------------------------ - | - | The above exception was the direct cause of the following exception: - | | Traceback (most recent call last): - | File "", line 4, in - | ValueError: bad value + | File "", line 2, in + | TypeError: bad type +------------------------------------ + + The above exception was the direct cause of the following exception: + + Traceback (most recent call last): + File "", line 4, in + ValueError: bad value >>> @@ -921,12 +918,9 @@ other clauses from the same ``try`` statement: ... except* ValueError: ... print('never') ... - | ExceptionGroup - +-+---------------- 1 ---------------- - | Traceback (most recent call last): - | File "", line 4, in - | ValueError: 2 - +---------------------------------------- + Traceback (most recent call last): + File "", line 4, in + ValueError: 2 >>>