[Python-checkins] python/dist/src/Lib pdb.py,1.51.24.3,1.51.24.4
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Mon, 13 Jan 2003 13:16:44 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv32387
Modified Files:
Tag: release22-maint
pdb.py
Log Message:
Backport 1.60 from trunk:
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.51.24.3
retrieving revision 1.51.24.4
diff -C2 -d -r1.51.24.3 -r1.51.24.4
*** pdb.py 24 Sep 2002 11:19:33 -0000 1.51.24.3
--- pdb.py 13 Jan 2003 21:16:24 -0000 1.51.24.4
***************
*** 187,193 ****
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"] ]
--- 187,190 ----
***************
*** 505,508 ****
--- 502,510 ----
do_q = do_quit
do_exit = do_quit
+
+ def do_EOF(self, arg):
+ print
+ self.set_quit()
+ return 1
def do_args(self, arg):