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:
parent
141f767d46
commit
cce92b27d6
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user