mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant to
notify exceptions raised by the _PyUnicodeWriter API
This commit is contained in:
parent
85c761d3d3
commit
d1f9942ae3
3 changed files with 5 additions and 2 deletions
|
|
@ -384,6 +384,8 @@ multibytecodec_decerror(MultibyteCodec *codec,
|
|||
PyErr_SetString(PyExc_RuntimeError,
|
||||
"internal codec error");
|
||||
return -1;
|
||||
case MBERR_EXCEPTION:
|
||||
return -1;
|
||||
default:
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
"unknown runtime error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue