summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 9a4f956..43695be 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -442,34 +442,6 @@ class FileIO(_fileio._FileIO, RawIOBase):
return self._mode
-class SocketIO(RawIOBase):
-
- """Raw I/O implementation for stream sockets."""
-
- # XXX More docs
-
- def __init__(self, sock, mode):
- assert mode in ("r", "w", "rw")
- RawIOBase.__init__(self)
- self._sock = sock
- self._mode = mode
-
- def readinto(self, b):
- return self._sock.recv_into(b)
-
- def write(self, b):
- return self._sock.send(b)
-
- def readable(self):
- return "r" in self._mode
-
- def writable(self):
- return "w" in self._mode
-
- def fileno(self):
- return self._sock.fileno()
-
-
class BufferedIOBase(IOBase):
"""Base class for buffered IO objects.