SF 693333

Modify subprocess to print a reasonable message upon receiving
a 'quit' or 'exit'
This commit is contained in:
Kurt B. Kaiser 2003-03-04 04:03:45 +00:00
parent fd8e6e5990
commit b2487335bf

View file

@ -418,6 +418,9 @@ class ModifiedInterpreter(InteractiveInterpreter):
import sys as _sys
_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`)
active_seq = None