Skip to content

Commit 60fe309

Browse files
committed
news: Doesn't actually touch BufferedIOBase, be more accurate for classes
1 parent a9200d3 commit 60fe309

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Fix an issue where the :class:`io.BufferedIOBase` implementation of
2-
:meth:`~io.IOBase.close` would think the I/O object was open and call
3-
:meth:`~io.IOBase.flush` which would error that the file was already closed by
4-
making the two implementations use the same logic.
1+
Fix an issue where :class:`io.BufferedWriter` and :class:`io.BufferedRandom`
2+
had different definitions of "closed" for :meth:`~io.IOBase.close` and
3+
:meth:`~io.IOBase.flush` which resulted in an exception when close called
4+
flush but flush thought the file was already closed.

0 commit comments

Comments
 (0)