summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index b501e4f..2b98bb5 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -490,8 +490,6 @@ multibytecodec_encode(const MultibyteCodec *codec,
int kind;
const void *data;
- if (PyUnicode_READY(text) < 0)
- return NULL;
datalen = PyUnicode_GET_LENGTH(text);
if (datalen == 0 && !(flags & MBENC_RESET))
@@ -603,10 +601,6 @@ _multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self,
}
}
- if (PyUnicode_READY(input) < 0) {
- Py_XDECREF(ucvt);
- return NULL;
- }
datalen = PyUnicode_GET_LENGTH(input);
errorcb = internal_error_callback(errors);
@@ -809,8 +803,6 @@ encoder_encode_stateful(MultibyteStatefulEncoderContext *ctx,
inbuf = Py_NewRef(unistr);
}
- if (PyUnicode_READY(inbuf) < 0)
- goto errorexit;
inpos = 0;
datalen = PyUnicode_GET_LENGTH(inbuf);