8000 MAINT: Fixup new ufunc AxisError use to use `numpy.exceptions` · numpy/numpy@8cf1f69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cf1f69

Browse files
committed
MAINT: Fixup new ufunc AxisError use to use numpy.exceptions
1 parent 7b1ee55 commit 8cf1f69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

numpy/core/src/umath/ufunc_object.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ _parse_axes_arg(PyUFuncObject *ufunc, int op_core_num_dims[], PyObject *axes,
18301830
if (PyTuple_Size(op_axes_tuple) != op_ncore) {
18311831
/* must have been a tuple with too many entries. */
18321832
npy_cache_import(
1833-
"numpy.core._exceptions", "AxisError", &AxisError_cls);
1833+
"numpy.exceptions", "AxisError", &AxisError_cls);
18341834
if (AxisError_cls == NULL) {
18351835
return -1;
18361836
}
@@ -1858,8 +1858,7 @@ _parse_axes_arg(PyUFuncObject *ufunc, int op_core_num_dims[], PyObject *axes,
18581858
return -1;
18591859
}
18601860
/* If it is a single integer, inform user that more are needed */
1861-
npy_cache_import(
1862-
"numpy.core._exceptions", "AxisError", &AxisError_cls);
1861+
npy_cache_import("numpy.exceptions", "AxisError", &AxisError_cls);
18631862
if (AxisError_cls == NULL) {
18641863
return -1;
18651864
}

0 commit comments

Comments
 (0)
0