Skip to content

Commit d09eaa1

Browse files
authored
Merge pull request numpy#26884 from WarrenWeckesser/remove-redundant-import
MAINT: Remove a redundant import from the generated __ufunc_api.h.
2 parents 835ee4d + 79f1334 commit d09eaa1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

numpy/_core/code_generators/generate_ufunc_api.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@
4141
PyObject *numpy = PyImport_ImportModule("numpy._core._multiarray_umath");
4242
if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
4343
PyErr_Clear();
44-
numpy = PyImport_ImportModule("numpy._core._multiarray_umath");
45-
if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
46-
PyErr_Clear();
47-
numpy = PyImport_ImportModule("numpy.core._multiarray_umath");
48-
}
44+
numpy = PyImport_ImportModule("numpy.core._multiarray_umath");
4945
}
5046
5147
if (numpy == NULL) {

0 commit comments

Comments
 (0)