diff options
author | Bill Spotz <wfspotz@sandia.gov> | 2013-03-11 21:06:36 -0600 |
---|---|---|
committer | Bill Spotz <wfspotz@sandia.gov> | 2013-03-11 21:06:36 -0600 |
commit | cdf04e9ae34f47aaa68e6d2c6e8a5760fb067c98 (patch) | |
tree | ea871da9604bb17f4e6431407052c1a89cc8d3c1 /doc | |
parent | 37e75e6e02cd9c48fe24ec0b4e700d9461b03610 (diff) | |
download | numpy-cdf04e9ae34f47aaa68e6d2c6e8a5760fb067c98.tar.gz |
Re-instated a Python 3 fix
Diffstat (limited to 'doc')
-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"; } |