From f2a1636f14d3519155df15be5d62cf3156042cad Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 8 Apr 2001 15:05:16 +0000 Subject: 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(+) (limited to 'Lib/bdb.py') diff --git a/Lib/bdb.py b/Lib/bdb.py index 5cfb5ef6c5..3fdfbddabf 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)) -- cgit v1.2.1