summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-29 23:22:12 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-29 23:22:12 (GMT)
commitf15d15964b6ac3e5ff71894707fbcff48bec45b2 (patch)
treee0fccf5a3756b03f3f0b2a265c65a175ffe61f09 /Lib/bdb.py
parentc90ad2103eb9aca14b7a910cbcdcd7b570f690ab (diff)
downloadcpython-f15d15964b6ac3e5ff71894707fbcff48bec45b2.zip
cpython-f15d15964b6ac3e5ff71894707fbcff48bec45b2.tar.gz
cpython-f15d15964b6ac3e5ff71894707fbcff48bec45b2.tar.bz2
Use sys.exc_info() where needed.
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index cab80a2..e4b6d39 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -148,7 +148,7 @@ class Bdb: # Basic Debugger
try:
1 + ''
except:
- frame = sys.exc_traceback.tb_frame.f_back
+ frame = sys.exc_info()[2].tb_frame.f_back
self.reset()
while frame:
frame.f_trace = self.trace_dispatch
@@ -168,7 +168,7 @@ class Bdb: # Basic Debugger
try:
1 + '' # raise an exception
except:
- frame = sys.exc_traceback.tb_frame.f_back
+ frame = sys.exc_info()[2].tb_frame.f_back
while frame and frame is not self.botframe:
del frame.f_trace
frame = frame.f_back