pdb.py, bdb.py, cmd.py: use __init__() instead of init()

This commit is contained in:
Guido van Rossum 1993-06-23 11:55:24 +00:00
parent 5cfa5dfe97
commit 5ef74b8f8e
3 changed files with 14 additions and 10 deletions

View file

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