summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-01 01:36:47 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-01 01:36:47 (GMT)
commitc6a30ecf7aa02665b11028a1ee25497bcebd8136 (patch)
treed659fe15fafe0a7e479715d0e13cf369f3a2525a /Lib/pdb.py
parent791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762 (diff)
downloadcpython-c6a30ecf7aa02665b11028a1ee25497bcebd8136.zip
cpython-c6a30ecf7aa02665b11028a1ee25497bcebd8136.tar.gz
cpython-c6a30ecf7aa02665b11028a1ee25497bcebd8136.tar.bz2
Remove use of tuple unpacking and dict.has_key() so as to silence
SyntaxWarning as triggered by -3.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 8616202..a7a3a18 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -175,7 +175,8 @@ class Pdb(bdb.Bdb, cmd.Cmd):
print >>self.stdout, '--Return--'
self.interaction(frame, None)
- def user_exception(self, frame, (exc_type, exc_value, exc_traceback)):
+ def user_exception(self, frame, exc_info):
+ exc_type, exc_value, exc_traceback = exc_info
"""This function is called if an exception occurs,
but only if we are to stop at or just below this level."""
frame.f_locals['__exception__'] = exc_type, exc_value