summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-14 13:45:06 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-14 13:45:06 (GMT)
commita0deb6402429f4b541aa38aac095ffe422b8f88e (patch)
treea932d2adbb2bf9ee6ebd8a0b63f7e695e0258f3b /Modules/arraymodule.c
parent35e55da7dce202b985b1735b9ae9b0080a993ba4 (diff)
downloadcpython-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.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c5
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 */
}