Make it clear that a bdb subclass must implement do_clear().

This was found by Neal Norwitz's PyChecker.
This commit is contained in:
Guido van Rossum 2001-04-08 15:05:16 +00:00
parent 7e01e284cb
commit 9cec8fba06
1 changed files with 3 additions and 0 deletions

View File

@ -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))