]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make it clear that a bdb subclass must implement do_clear().
authorGuido van Rossum <guido@python.org>
Sun, 8 Apr 2001 15:05:16 +0000 (15:05 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 8 Apr 2001 15:05:16 +0000 (15:05 +0000)
This was found by Neal Norwitz's PyChecker.

Lib/bdb.py

index 5cfb5ef6c5d1e3500858a4f9cd8092f7a1d99372..3fdfbddabf6b4b6202a65953c480e1c3c6f296ae 100644 (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))