summaryrefslogtreecommitdiff
path: root/numpy/f2py/cfuncs.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-02-25 05:20:51 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-02-25 05:20:51 +0000
commitf3580687a3f3752a8a8bebbcbe5b594055beb299 (patch)
tree116f28c4d47f23a0cfaec37050bfe93cf42ecf44 /numpy/f2py/cfuncs.py
parent9596a895dd01c27b9984fe8ff20e151eda41b9b8 (diff)
downloadnumpy-f3580687a3f3752a8a8bebbcbe5b594055beb299.tar.gz
ENH: Add support for PyCapsule.
Diffstat (limited to 'numpy/f2py/cfuncs.py')
-rw-r--r--numpy/f2py/cfuncs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py
index 5c9de1701..ec448680d 100644
--- a/numpy/f2py/cfuncs.py
+++ b/numpy/f2py/cfuncs.py
@@ -999,7 +999,7 @@ static int create_cb_arglist(PyObject* fun,PyTupleObject* xa,const int maxnofarg
\t\t\t\ttot += PyTuple_Size((PyObject *)xa);
\t\t\ttmp_fun = fun;
\t\t}
-\t\telse if (PyCObject_Check(fun)) {
+\t\telse if (F2PyCapsule_Check(fun)) {
\t\t\ttot = maxnofargs;
\t\t\tif (xa != NULL)
\t\t\t\text = PyTuple_Size((PyObject *)xa);