Commit 4901356b authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

nested_except_trace: remove indendation from example

... to facilitate copy and paste in a REPL.
parent a9abdb90
......@@ -9,25 +9,25 @@ class FixNestedExceptTrace(BaseStaticTraceFix):
Try the following two snippets yourself in Python 2 and Python 3...
try:
raise Exception("foo")
except Exception as e:
try:
raise Exception("foo")
raise Exception("bar")
except Exception as e:
try:
raise Exception("bar")
except Exception as e:
print(e)
print(e)
print(e)
---
try:
raise Exception("foo")
except Exception as e:
try:
raise Exception("foo")
raise Exception("bar")
except Exception as e:
try:
raise Exception("bar")
except Exception as e:
print(e)
raise
print(e)
raise
"""
basename = "nested_except"
traced_information = "lineno_parent", "lineno_child"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment