From b2487335bf8c9258d347d96cf615d964d57f5658 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Tue, 4 Mar 2003 04:03:45 +0000 Subject: SF 693333 Modify subprocess to print a reasonable message upon receiving a 'quit' or 'exit' --- Lib/idlelib/PyShell.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index f329162..946e0b2 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 -- cgit v0.12