Commit c1a4a047 authored by Jack Jansen's avatar Jack Jansen

Adapted to new standard for initmodule() routine: don't call

Py_FatalError on errors.
parent 7e0c0050
...@@ -65,8 +65,7 @@ class Module(GeneratorGroup): ...@@ -65,8 +65,7 @@ class Module(GeneratorGroup):
Output(""" PyDict_SetItemString(d, "Error", %s) != 0)""", Output(""" PyDict_SetItemString(d, "Error", %s) != 0)""",
self.errorname) self.errorname)
IndentLevel() IndentLevel()
Output("""Py_FatalError("can't initialize %s.Error");""", Output("""return;""")
self.name)
DedentLevel() DedentLevel()
for tp in self.typeobjects: for tp in self.typeobjects:
tp.outputTypeObjectInitializer() tp.outputTypeObjectInitializer()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment