diff options
author | Victor Stinner <vstinner@wyplay.com> | 2013-08-26 14:04:10 +0200 |
---|---|---|
committer | Victor Stinner <vstinner@wyplay.com> | 2013-08-26 14:04:10 +0200 |
commit | 69e213e962f615d59241c086f30f6bec5e66fcd3 (patch) | |
tree | 83abe92553d80ac1f263ace583fd13db0045b798 /Python/pythonrun.c | |
parent | 05ac164b5aa7cc1a17a9f4cef26edbca83fbbd25 (diff) | |
download | cpython-69e213e962f615d59241c086f30f6bec5e66fcd3.tar.gz |
Issue #18664, #18408: Rewrite PyErr_WriteUnraisable() to handle errors
* Catch PyFile_WriteString() and PyFile_WriteObject() errors
* Clear the current exception on _PyObject_GetAttrId() failure
* Use PyUnicode_CompareWithASCIIString() and PyFile_WriteObject() instead of
_PyUnicode_AsString() and strcmp() to avoid Unicode encoding error. stderr
has a more tolerant error handler than utf-8/strict.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions