[Idle-dev] CVS: idle PyShell.py,1.56,1.57
Kurt B. Kaiser
kbk@users.sourceforge.net
Mon, 03 Mar 2003 20:03:50 -0800
Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv5716
Modified Files:
PyShell.py
Log Message:
SF 693333
Modify subprocess to print a reasonable message upon receiving
a 'quit' or 'exit'
Index: PyShell.py
===================================================================
RCS file: /cvsroot/idlefork/idle/PyShell.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -r1.56 -r1.57
*** PyShell.py 17 Feb 2003 18:57:16 -0000 1.56
--- PyShell.py 4 Mar 2003 04:03:45 -0000 1.57
***************
*** 419,422 ****
--- 419,425 ----
_sys.path = %s
del _sys
+ _msg = 'Use File/Exit or your end-of-file key to quit IDLE'
+ __builtins__.quit = __builtins__.exit = _msg
+ del _msg
\n""" % `sys.path`)