diff Modules/_bytesio.c @ 61181:fe3bf399a19c 2.6

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. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Mon, 03 May 2010 16:48:13 +0000
parents 0bd616dfc977
children
line wrap: on
line diff
--- a/Modules/_bytesio.c	Mon May 03 16:11:45 2010 +0000
+++ b/Modules/_bytesio.c	Mon May 03 16:48:13 2010 +0000
@@ -163,6 +163,7 @@
 static PyObject *
 bytesio_flush(BytesIOObject *self)
 {
+    CHECK_CLOSED(self);
     Py_RETURN_NONE;
 }