summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shadchin <alexandr.shadchin@gmail.com>2021-02-27 03:30:46 +0300
committerGitHub <noreply@github.com>2021-02-27 09:30:46 +0900
commit44fd5777050c6583791609d3f77e05427bf878a3 (patch)
tree1352bc59798a3fbac2d556954e8e269f181ba23a
parent4ace82f1087ffa1ca3c44a27c7dd3338739efd0a (diff)
downloadmsgpack-python-44fd5777050c6583791609d3f77e05427bf878a3.tar.gz
Remove unused PyObject_AsReadBuffer definition (#468)
Also "old" buffer API was removed in Python 3.10
-rw-r--r--msgpack/_unpacker.pyx1
1 files changed, 0 insertions, 1 deletions
diff --git a/msgpack/_unpacker.pyx b/msgpack/_unpacker.pyx
index 7bfc3af..9ecfdfb 100644
--- a/msgpack/_unpacker.pyx
+++ b/msgpack/_unpacker.pyx
@@ -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 *