diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-16 21:41:43 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-16 21:41:43 +0200 |
commit | 8ce42751b4dff848555648469871e4210063d206 (patch) | |
tree | 30dc702dd3bdd15ddf6db135c2b383088c9da563 /Modules/cjkcodecs/multibytecodec.c | |
parent | e3ef5b9ba8e4f2f37b04b133a4425939febef5c4 (diff) | |
download | cpython-8ce42751b4dff848555648469871e4210063d206.tar.gz |
Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant to
notify exceptions raised by the _PyUnicodeWriter API
Diffstat (limited to 'Modules/cjkcodecs/multibytecodec.c')
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 2a29b7d4cd..3c5173f68c 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -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"); |