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/_io/stringio.c b/Modules/_io/stringio.c index 7749990..c4794c9 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c
@@ -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) {