diff options
author | Victor Stinner <vstinner@wyplay.com> | 2013-08-26 12:04:10 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@wyplay.com> | 2013-08-26 12:04:10 (GMT) |
commit | c82bfd871f33b824974469071469ac4fb491d547 (patch) | |
tree | b8a2b6d7d471815ef0c43f33c60719e2884f7afa /Modules/_struct.c | |
parent | e51321020c78f28571b499dcc284604217ef0eb0 (diff) | |
download | cpython-c82bfd871f33b824974469071469ac4fb491d547.zip cpython-c82bfd871f33b824974469071469ac4fb491d547.tar.gz cpython-c82bfd871f33b824974469071469ac4fb491d547.tar.bz2 |
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 'Modules/_struct.c')
0 files changed, 0 insertions, 0 deletions