#3560: cleanup C memoryview API

This commit is contained in:
Antoine Pitrou 2008-08-19 18:22:14 +00:00
parent fd036451bf
commit ee58fa484e
5 changed files with 30 additions and 18 deletions

View file

@ -264,7 +264,7 @@ scanstring_str(PyObject *pystr, Py_ssize_t end, char *encoding, int strict)
if (PyBuffer_FillInfo(&info, NULL, &buf[end], next - end, 1, 0) < 0) {
goto bail;
}
strchunk = PyMemoryView_FromMemory(&info);
strchunk = PyMemoryView_FromBuffer(&info);
if (strchunk == NULL) {
goto bail;
}