summaryrefslogtreecommitdiff
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-08 15:05:16 +0000
committerGuido van Rossum <guido@python.org>2001-04-08 15:05:16 +0000
commitf2a1636f14d3519155df15be5d62cf3156042cad (patch)
treebc7fc133fa33855ecb3b5728b89fc3752f31a280 /Lib/bdb.py
parent507774c7e420c84d696e17c1c4fcb67007223e8c (diff)
downloadcpython-f2a1636f14d3519155df15be5d62cf3156042cad.tar.gz
Make it clear that a bdb subclass must implement do_clear().
This was found by Neal Norwitz's PyChecker.
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py3
1 files changed, 3 insertions, 0 deletions
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))