diff options
author | Guido van Rossum <guido@python.org> | 2007-04-10 14:41:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-04-10 14:41:39 (GMT) |
commit | cce92b27d6ab9c5e829a9bdc1fc390912efc8669 (patch) | |
tree | f7030881e218ee05812805276af2a6d40cbc048f /Lib/io.py | |
parent | 141f767d4665d867ee370362ad4481da29edfc95 (diff) | |
download | cpython-cce92b27d6ab9c5e829a9bdc1fc390912efc8669.zip cpython-cce92b27d6ab9c5e829a9bdc1fc390912efc8669.tar.gz cpython-cce92b27d6ab9c5e829a9bdc1fc390912efc8669.tar.bz2 |
BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase!
Diffstat (limited to 'Lib/io.py')
-rw-r--r-- | Lib/io.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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. |