summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-08-08 20:49:19 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-08-08 20:49:19 +0000
commit93b64fe4948d74898a4060f205ab22a29cce6061 (patch)
treebb9e544b9b1956731db28f09fe20322b1731adac /Python/pythonrun.c
parentaf133c17e54d65afc30c6114ba7cedbbd0928efa (diff)
downloadcpython-93b64fe4948d74898a4060f205ab22a29cce6061.tar.gz
Merged revisions 83854 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83854 | antoine.pitrou | 2010-08-08 22:46:42 +0200 (dim., 08 août 2010) | 4 lines Issue #5319: Print an error if flushing stdout fails at interpreter shutdown. ........
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 388676589c..84d72f0714 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -331,7 +331,7 @@ flush_std_files(void)
if (fout != NULL && fout != Py_None) {
tmp = PyObject_CallMethod(fout, "flush", "");
if (tmp == NULL)
- PyErr_Clear();
+ PyErr_WriteUnraisable(fout);
else
Py_DECREF(tmp);
}