Skip to content

Commit

Permalink
Merge pull request #24972 from charris/backport-24958
Browse files Browse the repository at this point in the history
MAINT: Remove unhelpful error replacements from ``import_array()``
  • Loading branch information
rgommers committed Oct 21, 2023
2 parents aca4819 + a0f6999 commit 9d6694e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion numpy/core/code_generators/generate_numpy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
c_api = PyObject_GetAttrString(numpy, "_ARRAY_API");
Py_DECREF(numpy);
if (c_api == NULL) {
PyErr_SetString(PyExc_AttributeError, "_ARRAY_API not found");
return -1;
}
Expand Down

0 comments on commit 9d6694e

Please sign in to comment.