summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-08-01 12:11:29 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-08-01 12:11:50 +0200
commit05a5de6c800c58111260a70e0dd12c4b05963d73 (patch)
treebf35c058913a8ebebd58d9f53c16b158b45582f1
parent4206c26880f378b89e27f273e04de30554edb075 (diff)
downloadcython-05a5de6c800c58111260a70e0dd12c4b05963d73.tar.gz
Remove dead code and dead comments from "numpy/__init__.pxd".
-rw-r--r--Cython/Includes/numpy/__init__.pxd16
1 files changed, 2 insertions, 14 deletions
diff --git a/Cython/Includes/numpy/__init__.pxd b/Cython/Includes/numpy/__init__.pxd
index d3ef24f7f..ff31b91e2 100644
--- a/Cython/Includes/numpy/__init__.pxd
+++ b/Cython/Includes/numpy/__init__.pxd
@@ -1,26 +1,14 @@
# NumPy static imports for Cython
#
# If any of the PyArray_* functions are called, import_array must be
-# called first.
-#
-# This also defines backwards-compatibility buffer acquisition
-# code for use in Python 2.x (or Python <= 2.5 when NumPy starts
-# implementing PEP-3118 directly).
-#
-# Because of laziness, the format string of the buffer is statically
-# allocated. Increase the size if this is not enough, or submit a
-# patch to do this properly.
+# called first. This is done automatically by Cython 3.0+ if a call
+# is not detected inside of the module.
#
# Author: Dag Sverre Seljebotn
#
-DEF _buffer_format_string_len = 255
-
-cimport cpython.buffer as pybuf
from cpython.ref cimport Py_INCREF
-from cpython.mem cimport PyObject_Malloc, PyObject_Free
from cpython.object cimport PyObject, PyTypeObject, PyObject_TypeCheck
-from cpython.type cimport type
cimport libc.stdio as stdio