Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
67097fd5
Commit
67097fd5
authored
Jul 11, 2012
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use _RPCFile.write properly.
parent
c2761658
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/idlelib/run.py
Lib/idlelib/run.py
+2
-2
No files found.
Lib/idlelib/run.py
View file @
67097fd5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment