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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cce92b27d6ab9c5e829a9bdc1fc390912efc8669;p=python BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase! --- 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.