Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83bd70a

Browse files
committed
SF #515005, change "1 + ''" (which pychecker warns about being invalid)
into "raise Exception".
1 parent f7fdedc commit 83bd70a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/bdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def set_return(self, frame):
168168
def set_trace(self):
169169
"""Start debugging from here."""
170170
try:
171-
1 + ''
171+
raise Exception
172172
except:
173173
frame = sys.exc_info()[2].tb_frame.f_back
174174
self.reset()
@@ -188,7 +188,7 @@ def set_continue(self):
188188
# no breakpoints; run without debugger overhead
189189
sys.settrace(None)
190190
try:
191-
1 + '' # raise an exception
191+
raise Exception
192192
except:
193193
frame = sys.exc_info()[2].tb_frame.f_back
194194
while frame and frame is not self.botframe:

0 commit comments

Comments
 (0)