[Python-checkins] python/dist/src/Lib pdb.py,1.59,1.60

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Mon, 13 Jan 2003 13:14:00 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv31577

Modified Files:
	pdb.py 
Log Message:
Duh.  The do_EOF() implementation was bogus.  Make it more like
do_quit() -- but print a blank line first.


Index: pdb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pdb.py,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** pdb.py	17 Dec 2002 16:15:19 -0000	1.59
--- pdb.py	13 Jan 2003 21:13:55 -0000	1.60
***************
*** 194,200 ****
      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"] ]
--- 194,197 ----
***************
*** 531,534 ****
--- 528,536 ----
      do_q = do_quit
      do_exit = do_quit
+ 
+     def do_EOF(self, arg):
+         print
+         self.set_quit()
+         return 1
  
      def do_args(self, arg):