From bc656ee7cb00a6c4ad0d43f1cdd36bf8c9a026ed Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Mon, 3 May 2010 07:50:02 +0000 Subject: ENH, BUG: PyCObject will be deprecated in python 2.7. So use the NpyCapsule compatibility functions in npy_3kcompat.h to replace the current calls. This gets rid of a number of version checks and is easier to maintain. Fix bug that was present in the ufunc _loop1d_list_free destructor in the python3k case. --- numpy/numarray/include/numpy/libnumarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/numarray/include') diff --git a/numpy/numarray/include/numpy/libnumarray.h b/numpy/numarray/include/numpy/libnumarray.h index 738b5f1cc..08fe159f7 100644 --- a/numpy/numarray/include/numpy/libnumarray.h +++ b/numpy/numarray/include/numpy/libnumarray.h @@ -40,7 +40,7 @@ static void **libnumarray_API; #endif #endif -#if PY_VERSION_HEX >= 0x03010000 +#if PY_VERSION_HEX >= 0x02070000 #define _import_libnumarray() \ { \ PyObject *module = PyImport_ImportModule("numpy.numarray._capi"); \ -- cgit v1.2.1