diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 20:11:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 20:11:42 (GMT) |
commit | c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3 (patch) | |
tree | 6fb8eb484f53393c9b3fa2f6aa8a00d9c62c2135 /Modules/_io | |
parent | ed2682be2f6de05ead5f777ed3aaee92180df4f9 (diff) | |
download | cpython-c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3.zip cpython-c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3.tar.gz cpython-c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3.tar.bz2 |
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/stringio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index a4536b1..83a2465 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c @@ -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; |