From: Kurt B. Kaiser Date: Tue, 4 Mar 2003 04:03:45 +0000 (+0000) Subject: SF 693333 X-Git-Tag: v2.3c1~1597 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2487335bf8c9258d347d96cf615d964d57f5658;p=python SF 693333 Modify subprocess to print a reasonable message upon receiving a 'quit' or 'exit' --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index f3291628bd..946e0b28c1 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -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