From 67097fd592411ac19684f92beafaaa3f1e2f8e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 11 Jul 2012 09:17:15 +0200 Subject: [PATCH] Use _RPCFile.write properly. --- Lib/idlelib/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 43a7f659b60..cbfa8f86ea5 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)