From cce92b27d6ab9c5e829a9bdc1fc390912efc8669 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 10 Apr 2007 14:41:39 +0000 Subject: BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase! --- Lib/io.py | 5 ++--- 1 file 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. -- cgit v0.12