projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd8e6e5
)
SF 693333
author
Kurt B. Kaiser
<kbk@shore.net>
Tue, 4 Mar 2003 04:03:45 +0000
(
04:03
+0000)
committer
Kurt B. Kaiser
<kbk@shore.net>
Tue, 4 Mar 2003 04:03:45 +0000
(
04:03
+0000)
Modify subprocess to print a reasonable message upon receiving
a 'quit' or 'exit'
Lib/idlelib/PyShell.py
patch
|
blob
|
history
diff --git
a/Lib/idlelib/PyShell.py
b/Lib/idlelib/PyShell.py
index f3291628bdec5d4c787462a2c643acbee5a6531c..946e0b28c15e2d3ce346f5fabc046b6b199fb6f2 100644
(file)
--- 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