diff options
author | njsmith <njs@pobox.com> | 2013-07-11 15:54:49 -0700 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-07-11 15:54:49 -0700 |
commit | e1c4806b649933383fb610205fb612c438360472 (patch) | |
tree | 91dc7b921171c1b5a0b0b4010669576bc7fc5dcf /numpy/core/src/scalarmathmodule.c.src | |
parent | 12c5fc01e37d2235713c59ac0b1346294a8e8688 (diff) | |
parent | 28eadc0e31ca7aea5c679023d1e703856f45c879 (diff) | |
download | numpy-e1c4806b649933383fb610205fb612c438360472.tar.gz |
Merge pull request #3516 from charris/remove-outdated-version-checks
MAINT: Remove outdated version checks.
Diffstat (limited to 'numpy/core/src/scalarmathmodule.c.src')
-rw-r--r-- | numpy/core/src/scalarmathmodule.c.src | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src index 0f5f195f4..9247fc47a 100644 --- a/numpy/core/src/scalarmathmodule.c.src +++ b/numpy/core/src/scalarmathmodule.c.src @@ -1392,13 +1392,8 @@ emit_complexwarning(void) assert(cls != NULL); Py_DECREF(mod); } -#if PY_VERSION_HEX >= 0x02050000 return PyErr_WarnEx(cls, "Casting complex values to real discards the imaginary part", 1); -#else - return PyErr_Warn(cls, - "Casting complex values to real discards the imaginary part"); -#endif } /**begin repeat @@ -1658,9 +1653,7 @@ static PyNumberMethods @name@_as_number = { (binaryfunc)@name@_true_divide, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ -#if PY_VERSION_HEX >= 0x02050000 (unaryfunc)NULL, /*nb_index*/ -#endif }; /**end repeat**/ @@ -1679,9 +1672,7 @@ add_scalarmath(void) * Half, Float, Double, LongDouble, * CFloat, CDouble, CLongDouble# **/ -#if PY_VERSION_HEX >= 0x02050000 @name@_as_number.nb_index = Py@NAME@ArrType_Type.tp_as_number->nb_index; -#endif Py@NAME@ArrType_Type.tp_as_number = &(@name@_as_number); Py@NAME@ArrType_Type.tp_richcompare = @name@_richcompare; /**end repeat**/ |