summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-07-11 07:17:15 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-07-11 07:17:15 (GMT)
commit67097fd592411ac19684f92beafaaa3f1e2f8e6a (patch)
treeaa813fd770c79a33d8940a260f3fd4e07f33707d /Lib/idlelib/run.py
parentc27616580dfd7a4693c28c44ecd03cf749ff45fc (diff)
downloadcpython-67097fd592411ac19684f92beafaaa3f1e2f8e6a.zip
cpython-67097fd592411ac19684f92beafaaa3f1e2f8e6a.tar.gz
cpython-67097fd592411ac19684f92beafaaa3f1e2f8e6a.tar.bz2
Use _RPCFile.write properly.
Diffstat (limited to 'Lib/idlelib/run.py')
-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 43a7f65..cbfa8f8 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -255,8 +255,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)