summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-04-10 14:41:39 (GMT)
committerGuido van Rossum <guido@python.org>2007-04-10 14:41:39 (GMT)
commitcce92b27d6ab9c5e829a9bdc1fc390912efc8669 (patch)
treef7030881e218ee05812805276af2a6d40cbc048f
parent141f767d4665d867ee370362ad4481da29edfc95 (diff)
downloadcpython-cce92b27d6ab9c5e829a9bdc1fc390912efc8669.zip
cpython-cce92b27d6ab9c5e829a9bdc1fc390912efc8669.tar.gz
cpython-cce92b27d6ab9c5e829a9bdc1fc390912efc8669.tar.bz2
BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase!
-rw-r--r--Lib/io.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/io.py b/Lib/io.py
index f943f80..9f2a647 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.