summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-03-04 04:03:45 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-03-04 04:03:45 (GMT)
commitb2487335bf8c9258d347d96cf615d964d57f5658 (patch)
tree09ee1008fa66b079a6e9967b8250ed3c87be9507
parentfd8e6e599051de07cdb8e9abc9dbadf37c5fca0c (diff)
downloadcpython-b2487335bf8c9258d347d96cf615d964d57f5658.zip
cpython-b2487335bf8c9258d347d96cf615d964d57f5658.tar.gz
cpython-b2487335bf8c9258d347d96cf615d964d57f5658.tar.bz2
SF 693333
Modify subprocess to print a reasonable message upon receiving a 'quit' or 'exit'
-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