Mercurial > cpython-lru_cache-weakref
diff Modules/_io/stringio.c @ 73655:2e37fc70e2dd
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
And PyUnicode_GetSize() => PyUnicode_GetLength()
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Mon, 21 Nov 2011 02:49:52 +0100 |
| parents | 8d9a869db675 |
| children | 5fe7d19ec49a |
line wrap: on
line diff
--- a/Modules/_io/stringio.c Mon Nov 21 02:24:49 2011 +0100 +++ b/Modules/_io/stringio.c Mon Nov 21 02:49:52 2011 +0100 @@ -730,7 +730,7 @@ and copy it */ self->string_size = 0; if (value && value != Py_None) - value_len = PyUnicode_GetSize(value); + value_len = PyUnicode_GetLength(value); else value_len = 0; if (value_len > 0) {
