diff Modules/mathmodule.c @ 14346:5397fdf88ec2 legacy-trunk

Do the absolute minimal amount of modifications to eradicate Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c
author Barry Warsaw <barry@python.org>
date Fri, 01 Sep 2000 09:01:32 +0000
parents 9414d031a2c3
children 6f6f965c5e2d
line wrap: on
line diff
--- a/Modules/mathmodule.c	Fri Sep 01 08:10:08 2000 +0000
+++ b/Modules/mathmodule.c	Fri Sep 01 09:01:32 2000 +0000
@@ -268,8 +268,7 @@
 	if (PyDict_SetItemString(d, "e", v) < 0)
                 goto finally;
 	Py_DECREF(v);
-	return;
 
   finally:
-        Py_FatalError("can't initialize math module");
+	return;
 }