summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py3
1 files changed, 3 insertions, 0 deletions
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