mirror of
https://github.com/python/cpython.git
synced 2025-09-03 23:41:18 +00:00
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. ........
This commit is contained in:
parent
68c80edef8
commit
b61d5c9758
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue