mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
#3560: cleanup C memoryview API
This commit is contained in:
parent
fd036451bf
commit
ee58fa484e
5 changed files with 30 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue