]> granicus.if.org Git - python/commitdiff
Bug 1679498: remove unused instance variables _readable, _writable and
authorGuido van Rossum <guido@python.org>
Sun, 18 Mar 2007 03:42:15 +0000 (03:42 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 18 Mar 2007 03:42:15 +0000 (03:42 +0000)
_seekable.

Lib/io.py

index 59c4b062348115c48acf89669043bc0806d2eff6..4e91691079daff911c8d4906cab6a3b1446924fe 100644 (file)
--- 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)