Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant to

notify exceptions raised by the _PyUnicodeWriter API
This commit is contained in:
Victor Stinner 2013-07-16 21:41:43 +02:00
parent 85c761d3d3
commit d1f9942ae3
3 changed files with 5 additions and 2 deletions

View file

@ -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");