No need to issue a fatal error if the PyDict_SetItemString fails; the

caller (in import.c) will test for errors and take appropriate action.
This commit is contained in:
Guido van Rossum 1998-10-14 13:45:06 +00:00
parent 35e55da7dc
commit a0deb64024

View file

@ -1463,7 +1463,6 @@ initarray()
PyObject *m, *d;
m = Py_InitModule3("array", a_methods, module_doc);
d = PyModule_GetDict(m);
if (PyDict_SetItemString(d, "ArrayType",
(PyObject *)&Arraytype) != 0)
Py_FatalError("can't define array.ArrayType");
PyDict_SetItemString(d, "ArrayType", (PyObject *)&Arraytype);
/* No need to check the error here, the caller will do that */
}