mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
== -1 is convention
This commit is contained in:
parent
e157cf1012
commit
9ca3ffac94
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue