summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-08 15:05:16 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-08 15:05:16 (GMT)
commit9cec8fba06e66e92769e56130d581ea569399563 (patch)
treefbe87d470fae7f514bd975c2899b55f0f1a4715e /Lib
parent7e01e284cb4b936d2607c82ec8602f06eb0a1dbb (diff)
downloadcpython-9cec8fba06e66e92769e56130d581ea569399563.zip
cpython-9cec8fba06e66e92769e56130d581ea569399563.tar.gz
cpython-9cec8fba06e66e92769e56130d581ea569399563.tar.bz2
Make it clear that a bdb subclass must implement do_clear().
This was found by Neal Norwitz's PyChecker.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/bdb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 5cfb5ef..3fdfbdd 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))