Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 63847:77c6f60a1b24 3.1
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.
........
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 08 Aug 2010 20:49:19 +0000 |
| parents | fa830371c724 |
| children | 42b84d3188d1 |
comparison
equal
deleted
inserted
replaced
| 63844:fa8622265609 | 63847:77c6f60a1b24 |
|---|---|
| 329 PyObject *tmp; | 329 PyObject *tmp; |
| 330 | 330 |
| 331 if (fout != NULL && fout != Py_None) { | 331 if (fout != NULL && fout != Py_None) { |
| 332 tmp = PyObject_CallMethod(fout, "flush", ""); | 332 tmp = PyObject_CallMethod(fout, "flush", ""); |
| 333 if (tmp == NULL) | 333 if (tmp == NULL) |
| 334 PyErr_Clear(); | 334 PyErr_WriteUnraisable(fout); |
| 335 else | 335 else |
| 336 Py_DECREF(tmp); | 336 Py_DECREF(tmp); |
| 337 } | 337 } |
| 338 | 338 |
| 339 if (ferr != NULL && ferr != Py_None) { | 339 if (ferr != NULL && ferr != Py_None) { |
