From: Guido van Rossum Date: Tue, 10 Apr 2007 14:41:39 +0000 (+0000) Subject: BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase! X-Git-Tag: v3.0a1~1078 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cce92b27d6ab9c5e829a9bdc1fc390912efc8669;p=thirdparty%2FPython%2Fcpython.git BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase! --- diff --git a/Lib/io.py b/Lib/io.py index f943f8085fb5..9f2a647b20a9 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.