summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-12-12 22:22:59 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-12-12 22:22:59 (GMT)
commitc1a4a04792456bc5e958337f8d18b805918040b3 (patch)
tree602e35e17e6d4801de43a45ba039e0cb2c638aba
parent7e0c0050a8aa4536a02e2cf39c19e4ea76f37059 (diff)
downloadcpython-c1a4a04792456bc5e958337f8d18b805918040b3.zip
cpython-c1a4a04792456bc5e958337f8d18b805918040b3.tar.gz
cpython-c1a4a04792456bc5e958337f8d18b805918040b3.tar.bz2
Adapted to new standard for initmodule() routine: don't call
Py_FatalError on errors.
-rw-r--r--Tools/bgen/bgen/bgenModule.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/bgen/bgen/bgenModule.py b/Tools/bgen/bgen/bgenModule.py
index f55de97..b1d5d14 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()