Commit 83bd70a7 authored by Neal Norwitz's avatar Neal Norwitz

SF #515005, change "1 + ''" (which pychecker warns about being invalid)

into "raise Exception".
parent f7fdedc3
......@@ -168,7 +168,7 @@ class Bdb:
def set_trace(self):
"""Start debugging from here."""
try:
1 + ''
raise Exception
except:
frame = sys.exc_info()[2].tb_frame.f_back
self.reset()
......@@ -188,7 +188,7 @@ class Bdb:
# no breakpoints; run without debugger overhead
sys.settrace(None)
try:
1 + '' # raise an exception
raise Exception
except:
frame = sys.exc_info()[2].tb_frame.f_back
while frame and frame is not self.botframe:
......
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