summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs/multibytecodec.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-16 19:41:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-16 19:41:43 (GMT)
commitd1f9942ae399c765c1bee392658fc0f56f963ec5 (patch)
tree6d566256fb6d1c9edae6257bb612e1d867e58058 /Modules/cjkcodecs/multibytecodec.c
parent85c761d3d3357615da15b332df36b307c70e2acb (diff)
downloadcpython-d1f9942ae399c765c1bee392658fc0f56f963ec5.zip
cpython-d1f9942ae399c765c1bee392658fc0f56f963ec5.tar.gz
cpython-d1f9942ae399c765c1bee392658fc0f56f963ec5.tar.bz2
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index 2a29b7d..3c5173f 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");