mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Duh. The do_EOF() implementation was bogus. Make it more like
do_quit() -- but print a blank line first.
This commit is contained in:
parent
1a9975014f
commit
eef260757c
1 changed files with 5 additions and 3 deletions
|
|
@ -193,9 +193,6 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
||||||
|
|
||||||
do_h = cmd.Cmd.do_help
|
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):
|
def do_break(self, arg, temporary = 0):
|
||||||
# break [ ([filename:]lineno | function) [, "condition"] ]
|
# break [ ([filename:]lineno | function) [, "condition"] ]
|
||||||
if not arg:
|
if not arg:
|
||||||
|
|
@ -531,6 +528,11 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
||||||
do_q = do_quit
|
do_q = do_quit
|
||||||
do_exit = do_quit
|
do_exit = do_quit
|
||||||
|
|
||||||
|
def do_EOF(self, arg):
|
||||||
|
print
|
||||||
|
self.set_quit()
|
||||||
|
return 1
|
||||||
|
|
||||||
def do_args(self, arg):
|
def do_args(self, arg):
|
||||||
f = self.curframe
|
f = self.curframe
|
||||||
co = f.f_code
|
co = f.f_code
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue