commit | 9e30aa52fd416e17b692c4f22e57191cdd6ec654 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Nov 21 02:49:52 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Nov 21 02:49:52 2011 +0100 |
tree | f3b1c85f5cdbb6a32ec8f309400e8d3e1c2bbfaf | |
parent | f3ae6208c706bae89d86df44c7c3dcac1bdcd94d [diff] [blame] |
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() And PyUnicode_GetSize() => PyUnicode_GetLength()
diff --git a/Modules/_csv.c b/Modules/_csv.c index c02ee38..443309c 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c
@@ -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",