Commit cce92b27 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 141f767d
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment