Commit 67097fd5 authored by Martin v. Löwis's avatar Martin v. Löwis

Use _RPCFile.write properly.

parent c2761658
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment