From: Neal Norwitz Date: Mon, 11 Feb 2002 18:26:02 +0000 (+0000) Subject: SF #515005, change "1 + ''" (which pychecker warns about being invalid) X-Git-Tag: v2.3c1~6691 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83bd70a7fac1c03557e00a3f3891e998979bda29;p=thirdparty%2FPython%2Fcpython.git SF #515005, change "1 + ''" (which pychecker warns about being invalid) into "raise Exception". --- diff --git a/Lib/bdb.py b/Lib/bdb.py index 29cba8039f58..9d5bd78c3746 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -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: