Skip to content

Commit eef2607

Browse files
committed
Duh. The do_EOF() implementation was bogus. Make it more like
do_quit() -- but print a blank line first.
1 parent 1a99750 commit eef2607

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Lib/pdb.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ def precmd(self, line):
193193

194194
do_h = cmd.Cmd.do_help
195195

196-
def do_EOF(self, arg):
197-
return 0 # Don't die on EOF
198-
199196
def do_break(self, arg, temporary = 0):
200197
# break [ ([filename:]lineno | function) [, "condition"] ]
201198
if not arg:
@@ -531,6 +528,11 @@ def do_quit(self, arg):
531528
do_q = do_quit
532529
do_exit = do_quit
533530

531+
def do_EOF(self, arg):
532+
print
533+
self.set_quit()
534+
return 1
535+
534536
def do_args(self, arg):
535537
f = self.curframe
536538
co = f.f_code

0 commit comments

Comments
 (0)