summaryrefslogtreecommitdiff
path: root/numpy/lib/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/src')
-rw-r--r--numpy/lib/src/_compiled_base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c
index b2f2817d9..16b30608b 100644
--- a/numpy/lib/src/_compiled_base.c
+++ b/numpy/lib/src/_compiled_base.c
@@ -920,7 +920,6 @@ define_types(void)
/* Initialization function for the module (*must* be called init<name>) */
PyMODINIT_FUNC init_compiled_base(void) {
- PyObject *err = PyString_FromString("numpy.lib.error");
PyObject *m, *d, *s;
/* Create the module and add the functions */
@@ -937,8 +936,9 @@ PyMODINIT_FUNC init_compiled_base(void) {
Py_DECREF(s);
/* Fixme; We might want to remove this error string from the dictionary */
- PyDict_SetItemString(d, "error", err);
- Py_DECREF(err);
+ s = PyString_FromString("numpy.lib.error");
+ PyDict_SetItemString(d, "error", s);
+ Py_DECREF(s);
/* define PyGetSetDescr_Type and PyMemberDescr_Type */