diff options
author | Guido van Rossum <guido@python.org> | 1998-10-14 13:45:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-14 13:45:06 (GMT) |
commit | a0deb6402429f4b541aa38aac095ffe422b8f88e (patch) | |
tree | a932d2adbb2bf9ee6ebd8a0b63f7e695e0258f3b | |
parent | 35e55da7dce202b985b1735b9ae9b0080a993ba4 (diff) | |
download | cpython-a0deb6402429f4b541aa38aac095ffe422b8f88e.zip cpython-a0deb6402429f4b541aa38aac095ffe422b8f88e.tar.gz cpython-a0deb6402429f4b541aa38aac095ffe422b8f88e.tar.bz2 |
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.
-rw-r--r-- | Modules/arraymodule.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 99481ec..fc31b31 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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 */ } |