mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
Issue #7865: The close() method of :mod:io
objects should not swallow
exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon.
This commit is contained in:
parent
c3ce9e357d
commit
f7fd8e4c94
7 changed files with 81 additions and 32 deletions
|
@ -169,6 +169,7 @@ PyDoc_STRVAR(flush_doc,
|
|||
static PyObject *
|
||||
bytesio_flush(bytesio *self)
|
||||
{
|
||||
CHECK_CLOSED(self);
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue