diff options
| author | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:36:47 (GMT) |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:36:47 (GMT) |
| commit | c6a30ecf7aa02665b11028a1ee25497bcebd8136 (patch) | |
| tree | d659fe15fafe0a7e479715d0e13cf369f3a2525a /Lib/bdb.py | |
| parent | 791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762 (diff) | |
| download | cpython-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/bdb.py')
| -rw-r--r-- | Lib/bdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -131,8 +131,7 @@ class Bdb: raise NotImplementedError, "subclass of bdb must implement do_clear()" def break_anywhere(self, frame): - return self.breaks.has_key( - self.canonic(frame.f_code.co_filename)) + return self.canonic(frame.f_code.co_filename) in self.breaks # Derived classes should override the user_* methods # to gain control. @@ -150,7 +149,8 @@ class Bdb: """This method is called when a return trap is set here.""" pass - 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 method is called if an exception occurs, but only if we are to stop at or just below this level.""" pass |
