summaryrefslogtreecommitdiffstats
path: root/Modules/_io/stringio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_io/stringio.c')
-rw-r--r--Modules/_io/stringio.c2
1 files changed, 1 insertions, 1 deletions
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 @@ stringio_init(stringio *self, PyObject *args, PyObject *kwds)
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) {