We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76def3 commit 79f1334Copy full SHA for 79f1334
numpy/_core/code_generators/generate_ufunc_api.py
@@ -41,11 +41,7 @@
41
PyObject *numpy = PyImport_ImportModule("numpy._core._multiarray_umath");
42
if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
43
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
- }
+ numpy = PyImport_ImportModule("numpy.core._multiarray_umath");
49
}
50
51
if (numpy == NULL) {
0 commit comments