]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport 1.60 -- because this is an annoyance that Zope folks run into
authorGuido van Rossum <guido@python.org>
Thu, 13 Feb 2003 21:13:17 +0000 (21:13 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 13 Feb 2003 21:13:17 +0000 (21:13 +0000)
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

index 1286f122ba0d3e523a090ad38ce7e547b721585b..643b9d8b225cf30c7e44005aded70c667681ad93 100755 (executable)
@@ -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"] ]