From a6d3b8770ca9684ed342e7a4cf7d7af96a2bae1d Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 3 Jun 2009 02:24:29 +0000 Subject: Remove unused reference to MultiArrayError. --- numpy/lib/src/_compiled_base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/lib/src') 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) */ 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 */ -- cgit v1.2.1