Remove unused PyObject_AsReadBuffer definition (#468)

Also "old" buffer API was removed in Python 3.10
This commit is contained in:
Alexander Shadchin 2021-02-27 03:30:46 +03:00 committed by GitHub
parent 4ace82f108
commit 44fd577705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,6 @@
from cpython cimport *
cdef extern from "Python.h":
ctypedef struct PyObject
cdef int PyObject_AsReadBuffer(object o, const void** buff, Py_ssize_t* buf_len) except -1
object PyMemoryView_GetContiguous(object obj, int buffertype, char order)
from libc.stdlib cimport *