From: Guido van Rossum Date: Mon, 13 Jan 2003 21:16:24 +0000 (+0000) Subject: Backport 1.60 from trunk: X-Git-Tag: v2.2.3c1~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5238d59654f3b26a510e67bf695e88d30a7450b0;p=thirdparty%2FPython%2Fcpython.git Backport 1.60 from trunk: 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 1f3c1d47eee7..ff7c0709a05c 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -186,9 +186,6 @@ class Pdb(bdb.Bdb, cmd.Cmd): 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): # break [ ([filename:]lineno | function) [, "condition"] ] if not arg: @@ -505,6 +502,11 @@ class Pdb(bdb.Bdb, cmd.Cmd): do_q = do_quit do_exit = do_quit + def do_EOF(self, arg): + print + self.set_quit() + return 1 + def do_args(self, arg): f = self.curframe co = f.f_code