Move IndexOrValueError
@@ -36,14 +36,14 @@ cdef inline _should_use_rop(x, y):
return xp < yp and not isinstance(y, ndarray)
+try:
+ _AxisError = numpy.AxisError
+except AttributeError:
class IndexOrValueError(IndexError, ValueError):
def __init__(self, *args, **kwargs):
super(IndexOrValueError, self).__init__(*args, **kwargs)
-try:
- _AxisError = numpy.AxisError
-except AttributeError:
_AxisError = IndexOrValueError
