diff options
Diffstat (limited to 'doc/swig/numpy.i')
-rw-r--r-- | doc/swig/numpy.i | 2 |
1 files changed, 2 insertions, 0 deletions
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"; } |