From: Jack Jansen Date: Tue, 12 Dec 2000 22:22:59 +0000 (+0000) Subject: Adapted to new standard for initmodule() routine: don't call X-Git-Tag: v2.1a1~610 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1a4a04792456bc5e958337f8d18b805918040b3;p=thirdparty%2FPython%2Fcpython.git Adapted to new standard for initmodule() routine: don't call Py_FatalError on errors. --- diff --git a/Tools/bgen/bgen/bgenModule.py b/Tools/bgen/bgen/bgenModule.py index f55de9779403..b1d5d14123bf 100644 --- a/Tools/bgen/bgen/bgenModule.py +++ b/Tools/bgen/bgen/bgenModule.py @@ -65,8 +65,7 @@ class Module(GeneratorGroup): Output(""" PyDict_SetItemString(d, "Error", %s) != 0)""", self.errorname) IndentLevel() - Output("""Py_FatalError("can't initialize %s.Error");""", - self.name) + Output("""return;""") DedentLevel() for tp in self.typeobjects: tp.outputTypeObjectInitializer()