diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-03-23 15:41:02 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-03-23 18:10:29 -0500 |
commit | 4b4b6ef78f1174baac462a1e00c9c090c8a47b35 (patch) | |
tree | b8b7ce0756e054f36f47d86c0680553b16464d7f | |
parent | d2a608224de02dff0c62cc2eeab3882a5402cb91 (diff) | |
download | numpy-4b4b6ef78f1174baac462a1e00c9c090c8a47b35.tar.gz |
MAINT: Declare functions `static` rather than `NPY_NO_EXPORT`
These functions do not require `NPY_NO_EXPORT`. One of them was
(incorrectly) flagged by code coverage. Maybe this helps...
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index df0a77889..e5b182270 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -853,7 +853,7 @@ ufunc_get_name_cstr(PyUFuncObject *ufunc) { /* * Converters for use in parsing of keywords arguments. */ -NPY_NO_EXPORT int +static int _subok_converter(PyObject *obj, npy_bool *subok) { if (PyBool_Check(obj)) { @@ -867,7 +867,7 @@ _subok_converter(PyObject *obj, npy_bool *subok) } } -NPY_NO_EXPORT int +static int _keepdims_converter(PyObject *obj, int *keepdims) { if (PyBool_Check(obj)) { @@ -881,7 +881,7 @@ _keepdims_converter(PyObject *obj, int *keepdims) } } -NPY_NO_EXPORT int +static int _wheremask_converter(PyObject *obj, PyArrayObject **wheremask) { /* |