From 9cec8fba06e66e92769e56130d581ea569399563 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 8 Apr 2001 15:05:16 +0000 Subject: [PATCH] Make it clear that a bdb subclass must implement do_clear(). This was found by Neal Norwitz's PyChecker. --- Lib/bdb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/bdb.py b/Lib/bdb.py index 5cfb5ef6c5d..3fdfbddabf6 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))