pep 654: Restore code formatting

This commit is contained in:
Yury Selivanov 2021-02-22 11:48:07 -08:00
parent cef697a03c
commit aebbd8c4fc
No known key found for this signature in database
GPG Key ID: E6ABA2A46889EBBB
1 changed files with 9 additions and 9 deletions

View File

@ -471,20 +471,20 @@ the stack:
.. code-block:: .. code-block::
def foo(): | def foo(): def foo(): | def foo():
try: | try: try: | try:
1 / 0 | 1 / 0 1 / 0 | 1 / 0
except ZeroDivisionError as e: | except ZeroDivisionError: except ZeroDivisionError as e: | except ZeroDivisionError:
raise e | raise raise e | raise
| |
foo() | foo() foo() | foo()
| |
Traceback (most recent call last): | Traceback (most recent call last): Traceback (most recent call last): | Traceback (most recent call last):
File "/Users/guido/a.py", line 7 | File "/Users/guido/b.py", line 7 File "/Users/guido/a.py", line 7 | File "/Users/guido/b.py", line 7
foo() | foo() foo() | foo()
File "/Users/guido/a.py", line 5 | File "/Users/guido/b.py", line 3 File "/Users/guido/a.py", line 5 | File "/Users/guido/b.py", line 3
raise e | 1/0 raise e | 1/0
File "/Users/guido/a.py", line 3 | ZeroDivisionError: division by zero File "/Users/guido/a.py", line 3 | ZeroDivisionError: division by zero
1/0 | 1/0 |
ZeroDivisionError: division by zero | ZeroDivisionError: division by zero |