[Python-checkins] cpython (3.2): Use _RPCFile.write properly.
martin.v.loewis
python-checkins at python.org
Wed Jul 11 09:18:24 CEST 2012
http://hg.python.org/cpython/rev/302df09a6aa8
changeset: 78059:302df09a6aa8
branch: 3.2
parent: 78056:ff2a5f4bacd5
user: Martin v. Löwis <martin at v.loewis.de>
date: Wed Jul 11 09:17:15 2012 +0200
summary:
Use _RPCFile.write properly.
files:
Lib/idlelib/run.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -255,8 +255,8 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list