gh-130790: Remove references about unicode's readiness from comments (#130801)

This commit is contained in:
Sergey Miryanov 2025-03-04 00:18:09 +05:00 committed by GitHub
parent 8a64a62002
commit 3a7f17c7e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 9 additions and 28 deletions

View file

@ -591,7 +591,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
PyMem_Free(output);
if (!result)
return NULL;
/* result is guaranteed to be ready, as it is compact. */
kind = PyUnicode_KIND(result);
data = PyUnicode_DATA(result);
@ -655,7 +655,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
result = nfd_nfkd(self, input, k);
if (!result)
return NULL;
/* result will be "ready". */
kind = PyUnicode_KIND(result);
data = PyUnicode_DATA(result);
len = PyUnicode_GET_LENGTH(result);