Skip to content

Commit 22eb8bc

Browse files
committed
Backport 1.60 -- because this is an annoyance that Zope folks run into
and Zope 2.6 (which requires Python 2.1.x) isn't dead yet. Duh. The do_EOF() implementation was bogus. Make it more like do_quit() -- but print a blank line first.
1 parent 0c71748 commit 22eb8bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/pdb.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ def precmd(self, line):
181181
do_h = cmd.Cmd.do_help
182182

183183
def do_EOF(self, arg):
184-
return 0 # Don't die on EOF
184+
print
185+
self.set_quit()
186+
return 1
185187

186188
def do_break(self, arg, temporary = 0):
187189
# break [ ([filename:]lineno | function) [, "condition"] ]

0 commit comments

Comments
 (0)