summaryrefslogtreecommitdiff
path: root/Lib/bdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 66d3457c6b..bc0b282e01 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -13,8 +13,10 @@ BdbQuit = 'bdb.BdbQuit' # Exception to give up completely
class Bdb: # Basic Debugger
- def init(self):
+ def __init__(self):
self.breaks = {}
+
+ def init(self): # BW compat only
return self
def reset(self):
@@ -303,5 +305,5 @@ def bar(a):
def test():
import linecache
linecache.checkcache()
- t = Tdb().init()
+ t = Tdb()
t.run('import bdb; bdb.foo(10)')