mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
pdb.py, bdb.py, cmd.py: use __init__() instead of init()
This commit is contained in:
parent
5cfa5dfe97
commit
5ef74b8f8e
3 changed files with 14 additions and 10 deletions
|
@ -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)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue