diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-07-11 12:08:49 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-07-11 12:43:18 -0600 |
commit | 28eadc0e31ca7aea5c679023d1e703856f45c879 (patch) | |
tree | ad328cc92dddd315a574aa6b1c3baa948c8982ab /numpy/numarray/_capi.c | |
parent | 49a587cd786242b05fcfd22d5cda961d733b68d4 (diff) | |
download | numpy-28eadc0e31ca7aea5c679023d1e703856f45c879.tar.gz |
MAINT: Remove outdated version checks.
Because Numpy 1.8.0 will no longer supports Python versions < 2.6 we
no longer need to check for that and can also remove the code that is
specific to those earlier versions.
To make this a bit safer, the toplevel setup.py file now contains a
check of the Python version number and raises an error when run by an
unsupported version.
Diffstat (limited to 'numpy/numarray/_capi.c')
-rw-r--r-- | numpy/numarray/_capi.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c index 032379515..7320537a3 100644 --- a/numpy/numarray/_capi.c +++ b/numpy/numarray/_capi.c @@ -996,9 +996,7 @@ static PyTypeObject CfuncType = { 0, /* tp_subclasses */ 0, /* tp_weaklist */ 0, /* tp_del */ -#if PY_VERSION_HEX >= 0x02060000 0, /* tp_version_tag */ -#endif }; /* CfuncObjects are created at the c-level only. They ensure that each @@ -2250,11 +2248,9 @@ _NA_maxType(PyObject *seq, int limit) } return maxtype; } else { -#if PY_VERSION_HEX >= 0x02030000 if (PyBool_Check(seq)) return BOOL_SCALAR; else -#endif #if defined(NPY_PY3K) if (PyInt_Check(seq)) return INT_SCALAR; |