mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +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);
|
||||
if (repunicode == NULL)
|
||||
goto onError;
|
||||
if (PyUnicode_READY(repunicode) < 0) {
|
||||
if (PyUnicode_READY(repunicode) == -1) {
|
||||
Py_DECREF(repunicode);
|
||||
goto onError;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue