diff Modules/_io/bytesio.c @ 61183:ca01abd8ad87 3.1

Merged revisions 80722 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80722 | antoine.pitrou | 2010-05-03 18:48:20 +0200 (lun., 03 mai 2010) | 11 lines 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:58:19 +0000
parents d887db501a22
children 8b94f15cb650
line wrap: on
line diff
--- a/Modules/_io/bytesio.c	Mon May 03 16:17:30 2010 +0000
+++ b/Modules/_io/bytesio.c	Mon May 03 16:58:19 2010 +0000
@@ -169,6 +169,7 @@
 static PyObject *
 bytesio_flush(bytesio *self)
 {
+    CHECK_CLOSED(self);
     Py_RETURN_NONE;
 }