== -1 is convention
This commit is contained in:
parent
e157cf1012
commit
9ca3ffac94
|
@ -8770,7 +8770,7 @@ _PyUnicode_TranslateCharmap(PyObject *input,
|
||||||
collstart, collend, &newpos);
|
collstart, collend, &newpos);
|
||||||
if (repunicode == NULL)
|
if (repunicode == NULL)
|
||||||
goto onError;
|
goto onError;
|
||||||
if (PyUnicode_READY(repunicode) < 0) {
|
if (PyUnicode_READY(repunicode) == -1) {
|
||||||
Py_DECREF(repunicode);
|
Py_DECREF(repunicode);
|
||||||
goto onError;
|
goto onError;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue