commit | ee58fa484ed535ec6d7f2b93cb3ef2addeb337e1 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Aug 19 18:22:14 2008 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Aug 19 18:22:14 2008 +0000 |
tree | 9398d06f962ab532ad8bc80407630069491c1871 | |
parent | fd036451bf0e0ade8783e21df801abf7be96d020 [diff] [blame] |
#3560: cleanup C memoryview API
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 5de265d..c85a063 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1200,7 +1200,7 @@ buffer = NULL; if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_SIMPLE) < 0) goto onError; - buffer = PyMemoryView_FromMemory(&info); + buffer = PyMemoryView_FromBuffer(&info); if (buffer == NULL) goto onError; unicode = PyCodec_Decode(buffer, encoding, errors);