]> granicus.if.org Git - python/commitdiff
Adapted to new standard for initmodule() routine: don't call
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 12 Dec 2000 22:22:59 +0000 (22:22 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 12 Dec 2000 22:22:59 +0000 (22:22 +0000)
Py_FatalError on errors.

Tools/bgen/bgen/bgenModule.py

index f55de9779403fa4ea40985d6e2fa48aa37f27d7d..b1d5d14123bfb656e0bc49bc012995f3916ec55d 100644 (file)
@@ -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()