mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Adapted to new standard for initmodule() routine: don't call
Py_FatalError on errors.
This commit is contained in:
parent
7e0c0050a8
commit
c1a4a04792
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue