Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 28159:e405929c223e legacy-trunk
SF 693333
Modify subprocess to print a reasonable message upon receiving
a 'quit' or 'exit'
| author | Kurt B. Kaiser <kbk@shore.net> |
|---|---|
| date | Tue, 04 Mar 2003 04:03:45 +0000 |
| parents | 8e7432cdf7d8 |
| children | bea3d1fda3dc |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Tue Mar 04 00:26:38 2003 +0000 +++ b/Lib/idlelib/PyShell.py Tue Mar 04 04:03:45 2003 +0000 @@ -418,6 +418,9 @@ 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
