Commit ef17c16b authored by Guido van Rossum's avatar Guido van Rossum

Bug 1679498: remove unused instance variables _readable, _writable and

_seekable.
parent bb09b212
...@@ -196,7 +196,6 @@ class _PyFileIO(RawIOBase): ...@@ -196,7 +196,6 @@ class _PyFileIO(RawIOBase):
flags = os.O_RDONLY flags = os.O_RDONLY
elif mode == "w": elif mode == "w":
flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC
self._writable = True
elif mode == "r+": elif mode == "r+":
flags = os.O_RDWR flags = os.O_RDWR
else: else:
...@@ -271,9 +270,6 @@ class SocketIO(RawIOBase): ...@@ -271,9 +270,6 @@ class SocketIO(RawIOBase):
assert mode in ("r", "w", "rw") assert mode in ("r", "w", "rw")
self._sock = sock self._sock = sock
self._mode = mode self._mode = mode
self._readable = "r" in mode
self._writable = "w" in mode
self._seekable = False
def readinto(self, b): def readinto(self, b):
return self._sock.recv_into(b) return self._sock.recv_into(b)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment