summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-03-18 03:42:15 (GMT)
committerGuido van Rossum <guido@python.org>2007-03-18 03:42:15 (GMT)
commitef17c16b366b09a78dfe5fc5171fe2b0b29f60e5 (patch)
tree19d94ad491d71cf9de68db347479a791bae87c65 /Lib/io.py
parentbb09b212505a70a2b9f43ee2df6dd3ddb09776c1 (diff)
downloadcpython-ef17c16b366b09a78dfe5fc5171fe2b0b29f60e5.zip
cpython-ef17c16b366b09a78dfe5fc5171fe2b0b29f60e5.tar.gz
cpython-ef17c16b366b09a78dfe5fc5171fe2b0b29f60e5.tar.bz2
Bug 1679498: remove unused instance variables _readable, _writable and
_seekable.
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 59c4b06..4e91691 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -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)