[pypy-commit] pypy py3.5: remove another buffer.py import, and a duplicate declaration of PyObject_GetBuffer
mattip
pypy.commits at gmail.com
Mon Jan 2 16:59:01 EST 2017
Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.5
Changeset: r89319:2fe6166e5b03
Date: 2017-01-02 22:54 +0200
http://bitbucket.org/pypy/pypy/changeset/2fe6166e5b03/
Log: remove another buffer.py import, and a duplicate declaration of
PyObject_GetBuffer
diff --git a/pypy/module/cpyext/__init__.py b/pypy/module/cpyext/__init__.py
--- a/pypy/module/cpyext/__init__.py
+++ b/pypy/module/cpyext/__init__.py
@@ -49,7 +49,6 @@
import pypy.module.cpyext.longobject
import pypy.module.cpyext.listobject
import pypy.module.cpyext.sequence
-import pypy.module.cpyext.buffer
import pypy.module.cpyext.eval
import pypy.module.cpyext.import_
import pypy.module.cpyext.mapping
diff --git a/pypy/module/cpyext/include/abstract.h b/pypy/module/cpyext/include/abstract.h
--- a/pypy/module/cpyext/include/abstract.h
+++ b/pypy/module/cpyext/include/abstract.h
@@ -10,16 +10,6 @@
/* Return 1 if the getbuffer function is available, otherwise
return 0 */
- PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
- int flags);
-
- /* This is a C-API version of the getbuffer function call. It checks
- to make sure object has the required function pointer and issues the
- call. Returns -1 and raises an error on failure and returns 0 on
- success
- */
-
-
PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view);
/* Releases a Py_buffer obtained from getbuffer ParseTuple's s*.
More information about the pypy-commit
mailing list