0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase!

This commit is contained in:
Guido van Rossum 2007-04-10 14:41:39 +00:00
parent 141f767d46
commit cce92b27d6

View File

@ -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.