mirror of https://github.com/python/cpython
Adapted to new standard for initmodule() routine: don't call
Py_FatalError on errors.
This commit is contained in:
parent
7e0c0050a8
commit
c1a4a04792
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue