diff options
author | Georg Brandl <georg@python.org> | 2013-05-12 09:21:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-05-12 09:21:27 (GMT) |
commit | fbb9152f92a44daf81e47e50256a13c8065c6191 (patch) | |
tree | 97a46fce5f8184a0d75edc971ba79b416b547645 /Lib/idlelib/run.py | |
parent | 43473e36808a9219e7f95d02311ee579cd181c7d (diff) | |
parent | 0d4931eb9e35a37ea8b116b408082326a80c16c2 (diff) | |
download | cpython-fbb9152f92a44daf81e47e50256a13c8065c6191.zip cpython-fbb9152f92a44daf81e47e50256a13c8065c6191.tar.gz cpython-fbb9152f92a44daf81e47e50256a13c8065c6191.tar.bz2 |
Issue #17838: merge with 3.3
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r-- | Lib/idlelib/run.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index c66679c..5283a93 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) |