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; PyObject *m, *d;
m = Py_InitModule3("array", a_methods, module_doc); m = Py_InitModule3("array", a_methods, module_doc);
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
if (PyDict_SetItemString(d, "ArrayType", PyDict_SetItemString(d, "ArrayType", (PyObject *)&Arraytype);
(PyObject *)&Arraytype) != 0) /* No need to check the error here, the caller will do that */
Py_FatalError("can't define array.ArrayType");
} }