Issue #15319: Revert wrapping of sys.stdin. Patch by Serhiy Storchaka.

This commit is contained in:
Martin v. Löwis 2012-07-11 08:29:03 +02:00
parent 59b9a7bc61
commit 8a75bed317
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
What's New in IDLE 3.2.4? What's New in IDLE 3.2.4?
========================= =========================
- Issue #13532: Check that arguments to sys.stdout.write are strings. - Issue #13532, #15319: Check that arguments to sys.stdout.write are strings.
- Issue # 12510: Attempt to get certain tool tips no longer crashes IDLE. - Issue # 12510: Attempt to get certain tool tips no longer crashes IDLE.
Erroneous tool tips have been corrected. Default added for callables. Erroneous tool tips have been corrected. Default added for callables.

View File

@ -269,7 +269,7 @@ class MyHandler(rpc.RPCHandler):
"""Override base method""" """Override base method"""
executive = Executive(self) executive = Executive(self)
self.register("exec", executive) self.register("exec", executive)
sys.stdin = self.console = _RPCFile(self.get_remote_proxy("stdin")) sys.stdin = self.console = self.get_remote_proxy("stdin")
sys.stdout = _RPCFile(self.get_remote_proxy("stdout")) sys.stdout = _RPCFile(self.get_remote_proxy("stdout"))
sys.stderr = _RPCFile(self.get_remote_proxy("stderr")) sys.stderr = _RPCFile(self.get_remote_proxy("stderr"))
# page help() text to shell. # page help() text to shell.