From cdf04e9ae34f47aaa68e6d2c6e8a5760fb067c98 Mon Sep 17 00:00:00 2001 From: Bill Spotz Date: Mon, 11 Mar 2013 21:06:36 -0600 Subject: Re-instated a Python 3 fix --- doc/swig/numpy.i | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/swig/numpy.i b/doc/swig/numpy.i index 0dd14262a..fbc69a3af 100644 --- a/doc/swig/numpy.i +++ b/doc/swig/numpy.i @@ -83,9 +83,11 @@ if (PyDict_Check( py_obj)) return "dict" ; if (PyList_Check( py_obj)) return "list" ; if (PyTuple_Check( py_obj)) return "tuple" ; +%#if PY_MAJOR_VERSION < 3 if (PyFile_Check( py_obj)) return "file" ; if (PyModule_Check( py_obj)) return "module" ; if (PyInstance_Check(py_obj)) return "instance" ; +%#endif return "unkown type"; } -- cgit v1.2.1