summaryrefslogtreecommitdiff
path: root/Lib/io.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/io.py b/Lib/io.py
index f943f8085f..9f2a647b20 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -354,7 +354,7 @@ class SocketIO(RawIOBase):
return self._sock.fileno()
-class BufferedIOBase(RawIOBase):
+class BufferedIOBase(IOBase):
"""Base class for buffered IO objects.
@@ -779,8 +779,7 @@ class BufferedRandom(BufferedWriter, BufferedReader):
return BufferedWriter.write(self, b)
-# XXX That's not the right base class
-class TextIOBase(BufferedIOBase):
+class TextIOBase(IOBase):
"""Base class for text I/O.