summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-07-11 07:19:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-07-11 07:19:16 (GMT)
commit3e0cc0f12c30692774aa0355e06f85d672610419 (patch)
tree1c7f808a55ba6ec15a9468b85822b3d78fb42eaf
parent1ba32187c0737b3b8ae63b9ea215be7c2d423e6d (diff)
downloadcpython-3e0cc0f12c30692774aa0355e06f85d672610419.zip
cpython-3e0cc0f12c30692774aa0355e06f85d672610419.tar.gz
cpython-3e0cc0f12c30692774aa0355e06f85d672610419.tar.bz2
Use _RPCFile.write properly.
-rw-r--r--Lib/idlelib/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index 831235d..e1e6380 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -259,8 +259,8 @@ class _RPCFile(io.TextIOBase):
super.__setattr__(self, 'rpc', rpc)
def __getattribute__(self, name):
- # When accessing the 'rpc' attribute, use ours
- if name == 'rpc':
+ # When accessing the 'rpc' attribute, or 'write', use ours
+ if name in ('rpc', 'write'):
return io.TextIOBase.__getattribute__(self, name)
# Else only look into the remote object only
return getattr(self.rpc, name)