diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-02-11 18:26:02 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-02-11 18:26:02 (GMT) |
commit | 83bd70a7fac1c03557e00a3f3891e998979bda29 (patch) | |
tree | b8304bf5d57f29aca31fe05924e3a4db10c6e579 /Lib/bdb.py | |
parent | f7fdedc320b9e2b12d0762636fdfbc1b1e72d2c8 (diff) | |
download | cpython-83bd70a7fac1c03557e00a3f3891e998979bda29.zip cpython-83bd70a7fac1c03557e00a3f3891e998979bda29.tar.gz cpython-83bd70a7fac1c03557e00a3f3891e998979bda29.tar.bz2 |
SF #515005, change "1 + ''" (which pychecker warns about being invalid)
into "raise Exception".
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r-- | Lib/bdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |