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.
2 parents 835ee4d + 79f1334 commit d09eaa1Copy full SHA for d09eaa1
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