[Python-3000-checkins] r54425 - python/branches/p3yk/Lib/io.py
guido.van.rossum
python-3000-checkins at python.org
Sun Mar 18 04:42:16 CET 2007
Author: guido.van.rossum
Date: Sun Mar 18 04:42:15 2007
New Revision: 54425
Modified:
python/branches/p3yk/Lib/io.py
Log:
Bug 1679498: remove unused instance variables _readable, _writable and
_seekable.
Modified: python/branches/p3yk/Lib/io.py
==============================================================================
--- python/branches/p3yk/Lib/io.py (original)
+++ python/branches/p3yk/Lib/io.py Sun Mar 18 04:42:15 2007
@@ -196,7 +196,6 @@
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 @@
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)
More information about the Python-3000-checkins
mailing list