diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/run.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index b65aaf8..464861f 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -268,8 +268,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) |