From: Guido van Rossum Date: Thu, 13 Feb 2003 21:13:17 +0000 (+0000) Subject: Backport 1.60 -- because this is an annoyance that Zope folks run into X-Git-Tag: 2.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22eb8bc48ea965491c4f632b48de795f8fcf6e3f;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/pdb.py b/Lib/pdb.py index 1286f122ba0d..643b9d8b225c 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -181,7 +181,9 @@ class Pdb(bdb.Bdb, cmd.Cmd): do_h = cmd.Cmd.do_help def do_EOF(self, arg): - return 0 # Don't die on EOF + print + self.set_quit() + return 1 def do_break(self, arg, temporary = 0): # break [ ([filename:]lineno | function) [, "condition"] ]