summaryrefslogtreecommitdiffstats
path: root/Modules/_io/bytesio.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-05-03 16:48:20 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-05-03 16:48:20 (GMT)
commit6be8876623ffab3f2d1e4af46e7ce169d84b35a6 (patch)
tree66fdad672568ed51cbc8e1d598a104d4037381d2 /Modules/_io/bytesio.c
parentfb7b66821678701c1847b2e950ddb6f061da27a2 (diff)
downloadcpython-6be8876623ffab3f2d1e4af46e7ce169d84b35a6.zip
cpython-6be8876623ffab3f2d1e4af46e7ce169d84b35a6.tar.gz
cpython-6be8876623ffab3f2d1e4af46e7ce169d84b35a6.tar.bz2
Merged revisions 80720 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80720 | antoine.pitrou | 2010-05-03 18:25:33 +0200 (lun., 03 mai 2010) | 5 lines 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. ........
Diffstat (limited to 'Modules/_io/bytesio.c')
-rw-r--r--Modules/_io/bytesio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c
index 1482d82..4e78cd5 100644
--- a/Modules/_io/bytesio.c
+++ b/Modules/_io/bytesio.c
@@ -169,6 +169,7 @@ PyDoc_STRVAR(flush_doc,
static PyObject *
bytesio_flush(bytesio *self)
{
+ CHECK_CLOSED(self);
Py_RETURN_NONE;
}