mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
This commit is contained in:
parent
ed2682be2f
commit
c4f281eba3
6 changed files with 10 additions and 12 deletions
|
|
@ -343,7 +343,7 @@ stringio_iternext(stringio *self)
|
|||
if (line == NULL)
|
||||
return NULL;
|
||||
|
||||
if (PyUnicode_GET_SIZE(line) == 0) {
|
||||
if (PyUnicode_GET_LENGTH(line) == 0) {
|
||||
/* Reached EOF */
|
||||
Py_DECREF(line);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue