From: Guido van Rossum Date: Sun, 8 Apr 2001 15:05:16 +0000 (+0000) Subject: Make it clear that a bdb subclass must implement do_clear(). X-Git-Tag: v2.1c1~161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cec8fba06e66e92769e56130d581ea569399563;p=thirdparty%2FPython%2Fcpython.git Make it clear that a bdb subclass must implement do_clear(). This was found by Neal Norwitz's PyChecker. --- diff --git a/Lib/bdb.py b/Lib/bdb.py index 5cfb5ef6c5d1..3fdfbddabf6b 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -113,6 +113,9 @@ class Bdb: else: return 0 + def do_clear(self, arg): + 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))