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 2e700c6 commit 8ee6a32Copy full SHA for 8ee6a32
numpy/_core/code_generators/generate_numpy_api.py
@@ -65,6 +65,7 @@
65
{
66
int st;
67
PyObject *numpy = PyImport_ImportModule("numpy._core._multiarray_umath");
68
+ PyObject *c_api;
69
if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
70
PyErr_Clear();
71
numpy = PyImport_ImportModule("numpy.core._multiarray_umath");
@@ -74,7 +75,7 @@
74
75
return -1;
76
}
77
- PyObject *c_api = PyObject_GetAttrString(numpy, "_ARRAY_API");
78
+ c_api = PyObject_GetAttrString(numpy, "_ARRAY_API");
79
Py_DECREF(numpy);
80
if (c_api == NULL) {
81
0 commit comments