diff options
author | Guido van Rossum <guido@python.org> | 2003-01-13 21:13:55 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-01-13 21:13:55 (GMT) |
commit | eef260757cb23cd83f603b690f8e737d0892e561 (patch) | |
tree | c601c33a6ebbf36cf845018630b71e8fe18baf17 /Lib/pdb.py | |
parent | 1a9975014f7ddc583a2428fe47d0e17261f98b46 (diff) | |
download | cpython-eef260757cb23cd83f603b690f8e737d0892e561.zip cpython-eef260757cb23cd83f603b690f8e737d0892e561.tar.gz cpython-eef260757cb23cd83f603b690f8e737d0892e561.tar.bz2 |
Duh. The do_EOF() implementation was bogus. Make it more like
do_quit() -- but print a blank line first.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -193,9 +193,6 @@ class Pdb(bdb.Bdb, cmd.Cmd): do_h = cmd.Cmd.do_help - def do_EOF(self, arg): - return 0 # Don't die on EOF - def do_break(self, arg, temporary = 0): # break [ ([filename:]lineno | function) [, "condition"] ] if not arg: @@ -531,6 +528,11 @@ class Pdb(bdb.Bdb, cmd.Cmd): do_q = do_quit do_exit = do_quit + def do_EOF(self, arg): + print + self.set_quit() + return 1 + def do_args(self, arg): f = self.curframe co = f.f_code |