Kaydet (Commit) 3d490d4e authored tarafından Benjamin Peterson's avatar Benjamin Peterson

merge 3.3

......@@ -320,7 +320,7 @@ multibytecodec_encerror(MultibyteCodec *codec,
!PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) {
PyErr_SetString(PyExc_TypeError,
"encoding error handler must return "
"(unicode, int) tuple");
"(str, int) tuple");
goto errorexit;
}
......@@ -439,7 +439,7 @@ multibytecodec_decerror(MultibyteCodec *codec,
!PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) {
PyErr_SetString(PyExc_TypeError,
"decoding error handler must return "
"(unicode, int) tuple");
"(str, int) tuple");
goto errorexit;
}
......@@ -760,7 +760,7 @@ encoder_encode_stateful(MultibyteStatefulEncoderContext *ctx,
return NULL;
else if (!PyUnicode_Check(unistr)) {
PyErr_SetString(PyExc_TypeError,
"couldn't convert the object to unicode.");
"couldn't convert the object to str.");
Py_DECREF(ucvt);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment