summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-05-12 09:24:47 (GMT)
committerGeorg Brandl <georg@python.org>2013-05-12 09:24:47 (GMT)
commit831ae8454d6acc00c110e75f7a756cbfb071fe25 (patch)
tree24d868511731d47992b65ea5da5983f6d5970000 /Lib/idlelib
parentaa6f688bd4f02b5d50c26cf649172672c1546d12 (diff)
parent0d4931eb9e35a37ea8b116b408082326a80c16c2 (diff)
downloadcpython-831ae8454d6acc00c110e75f7a756cbfb071fe25.zip
cpython-831ae8454d6acc00c110e75f7a756cbfb071fe25.tar.gz
cpython-831ae8454d6acc00c110e75f7a756cbfb071fe25.tar.bz2
merge heads
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/run.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index d105912..88da23b 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -297,6 +297,11 @@ class MyHandler(rpc.RPCHandler):
# page help() text to shell.
import pydoc # import must be done here to capture i/o binding
pydoc.pager = pydoc.plainpager
+
+ # Keep a reference to stdin so that it won't try to exit IDLE if
+ # sys.stdin gets changed from within IDLE's shell. See issue17838.
+ self._keep_stdin = sys.stdin
+
self.interp = self.get_remote_proxy("interp")
rpc.RPCHandler.getresponse(self, myseq=None, wait=0.05)