From: Martin v. Löwis Date: Wed, 11 Jul 2012 07:17:15 +0000 (+0200) Subject: Use _RPCFile.write properly. X-Git-Tag: v3.3.0b2~239^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67097fd592411ac19684f92beafaaa3f1e2f8e6a;p=thirdparty%2FPython%2Fcpython.git Use _RPCFile.write properly. --- diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 43a7f659b60b..cbfa8f86ea56 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)