From 22eb8bc48ea965491c4f632b48de795f8fcf6e3f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 13 Feb 2003 21:13:17 +0000 Subject: 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. --- Lib/pdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/pdb.py b/Lib/pdb.py index 1286f12..643b9d8 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"] ] -- cgit v0.12