pep 654: Restore code formatting
This commit is contained in:
parent
cef697a03c
commit
aebbd8c4fc
18
pep-0654.rst
18
pep-0654.rst
|
@ -471,20 +471,20 @@ the stack:
|
|||
.. code-block::
|
||||
|
||||
def foo(): | def foo():
|
||||
try: | try:
|
||||
1 / 0 | 1 / 0
|
||||
except ZeroDivisionError as e: | except ZeroDivisionError:
|
||||
raise e | raise
|
||||
|
|
||||
try: | try:
|
||||
1 / 0 | 1 / 0
|
||||
except ZeroDivisionError as e: | except ZeroDivisionError:
|
||||
raise e | raise
|
||||
|
|
||||
foo() | foo()
|
||||
|
|
||||
|
|
||||
Traceback (most recent call last): | Traceback (most recent call last):
|
||||
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
|
||||
raise e | 1/0
|
||||
raise e | 1/0
|
||||
File "/Users/guido/a.py", line 3 | ZeroDivisionError: division by zero
|
||||
1/0 |
|
||||
1/0 |
|
||||
ZeroDivisionError: division by zero |
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue