Mercurial > cpython-lru_cache-weakref
diff Modules/_csv.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 | d133601583d5 |
| children | 2496602a56e5 |
line wrap: on
line diff
--- a/Modules/_csv.c Mon Nov 21 02:24:49 2011 +0100 +++ b/Modules/_csv.c Mon Nov 21 02:49:52 2011 +0100 @@ -207,7 +207,7 @@ *target = '\0'; if (src != Py_None) { Py_ssize_t len; - len = PyUnicode_GetSize(src); + len = PyUnicode_GetLength(src); if (len > 1) { PyErr_Format(PyExc_TypeError, "\"%s\" must be an 1-character string",
