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
ef17c16b
Commit
ef17c16b
authored
Mar 18, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1679498: remove unused instance variables _readable, _writable and
_seekable.
parent
bb09b212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
Lib/io.py
Lib/io.py
+0
-4
No files found.
Lib/io.py
View file @
ef17c16b
...
...
@@ -196,7 +196,6 @@ class _PyFileIO(RawIOBase):
flags
=
os
.
O_RDONLY
elif
mode
==
"w"
:
flags
=
os
.
O_WRONLY
|
os
.
O_CREAT
|
os
.
O_TRUNC
self
.
_writable
=
True
elif
mode
==
"r+"
:
flags
=
os
.
O_RDWR
else
:
...
...
@@ -271,9 +270,6 @@ class SocketIO(RawIOBase):
assert
mode
in
(
"r"
,
"w"
,
"rw"
)
self
.
_sock
=
sock
self
.
_mode
=
mode
self
.
_readable
=
"r"
in
mode
self
.
_writable
=
"w"
in
mode
self
.
_seekable
=
False
def
readinto
(
self
,
b
):
return
self
.
_sock
.
recv_into
(
b
)
...
...
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