diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-07-11 07:17:15 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-07-11 07:17:15 (GMT) |
commit | 67097fd592411ac19684f92beafaaa3f1e2f8e6a (patch) | |
tree | aa813fd770c79a33d8940a260f3fd4e07f33707d | |
parent | c27616580dfd7a4693c28c44ecd03cf749ff45fc (diff) | |
download | cpython-67097fd592411ac19684f92beafaaa3f1e2f8e6a.zip cpython-67097fd592411ac19684f92beafaaa3f1e2f8e6a.tar.gz cpython-67097fd592411ac19684f92beafaaa3f1e2f8e6a.tar.bz2 |
Use _RPCFile.write properly.
-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 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) |