mirror of https://github.com/python/cpython
Backport revision 58471, replace PyErr_Print() with PyErr_Clear().
This commit is contained in:
parent
c572dc3752
commit
e15fab4298
|
@ -1542,7 +1542,7 @@ dec_utf8(const char *enc, const char *text, size_t len) {
|
|||
Py_DECREF(unicode_text);
|
||||
}
|
||||
if (!ret) {
|
||||
PyErr_Print();
|
||||
PyErr_Clear();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue