diff options
author | Guido van Rossum <guido@python.org> | 1993-06-23 11:55:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-06-23 11:55:24 (GMT) |
commit | 5ef74b8f8edbebe22d0b86c85f08b0c618d808f7 (patch) | |
tree | bb1b4ee25eb19fa85c152415f2367342c8954f53 /Lib/pdb.py | |
parent | 5cfa5dfe977854a090e70cb4f4353e2e6b46789e (diff) | |
download | cpython-5ef74b8f8edbebe22d0b86c85f08b0c618d808f7.zip cpython-5ef74b8f8edbebe22d0b86c85f08b0c618d808f7.tar.gz cpython-5ef74b8f8edbebe22d0b86c85f08b0c618d808f7.tar.bz2 |
pdb.py, bdb.py, cmd.py: use __init__() instead of init()
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -12,10 +12,12 @@ import repr class Pdb(bdb.Bdb, cmd.Cmd): - def init(self): - self = bdb.Bdb.init(self) - self = cmd.Cmd.init(self) + def __init__(self): + bdb.Bdb.__init__(self) + cmd.Cmd.__init__(self) self.prompt = '(Pdb) ' + + def init(self): # BW compat only return self def reset(self): @@ -277,19 +279,19 @@ class Pdb(bdb.Bdb, cmd.Cmd): # Simplified interface def run(statement): - Pdb().init().run(statement) + Pdb().run(statement) def runctx(statement, globals, locals): - Pdb().init().runctx(statement, globals, locals) + Pdb().runctx(statement, globals, locals) def runcall(*args): - apply(Pdb().init().runcall, args) + apply(Pdb().runcall, args) # Post-Mortem interface def post_mortem(t): - p = Pdb().init() + p = Pdb() p.reset() while t.tb_next <> None: t = t.tb_next p.interaction(t.tb_frame, t) |