mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase!
This commit is contained in:
parent
141f767d46
commit
cce92b27d6
1 changed files with 2 additions and 3 deletions
|
|
@ -354,7 +354,7 @@ class SocketIO(RawIOBase):
|
||||||
return self._sock.fileno()
|
return self._sock.fileno()
|
||||||
|
|
||||||
|
|
||||||
class BufferedIOBase(RawIOBase):
|
class BufferedIOBase(IOBase):
|
||||||
|
|
||||||
"""Base class for buffered IO objects.
|
"""Base class for buffered IO objects.
|
||||||
|
|
||||||
|
|
@ -779,8 +779,7 @@ class BufferedRandom(BufferedWriter, BufferedReader):
|
||||||
return BufferedWriter.write(self, b)
|
return BufferedWriter.write(self, b)
|
||||||
|
|
||||||
|
|
||||||
# XXX That's not the right base class
|
class TextIOBase(IOBase):
|
||||||
class TextIOBase(BufferedIOBase):
|
|
||||||
|
|
||||||
"""Base class for text I/O.
|
"""Base class for text I/O.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue