mirror of
https://github.com/python/cpython.git
synced 2026-01-03 14:02:21 +00:00
SF #515005, change "1 + ''" (which pychecker warns about being invalid)
into "raise Exception".
This commit is contained in:
parent
f7fdedc320
commit
83bd70a7fa
1 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ def set_return(self, frame):
|
|||
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 @@ def set_continue(self):
|
|||
# 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue