diff options
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 92f594a..27f2d0a 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -1109,7 +1109,7 @@ PyUnknownEncodingHandler(void *encodingHandlerData, return XML_STATUS_ERROR; u = PyUnicode_Decode((const char*) template_buffer, 256, name, "replace"); - if (u == NULL || PyUnicode_READY(u)) { + if (u == NULL) { Py_XDECREF(u); return XML_STATUS_ERROR; } |