mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
merge 3.2
This commit is contained in:
commit
fa0989fd38
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue