summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-08 15:21:57 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-08 15:21:57 (GMT)
commit845037018d9255b4cdb567d977dfaeae4b47b5e0 (patch)
tree5e9c7e47c75869feba92ae5bbff83230b90a32fc /Tools/bgen
parentc0be2f5d569f5a70f083f4f8eaf6e8758b342e03 (diff)
downloadcpython-845037018d9255b4cdb567d977dfaeae4b47b5e0.zip
cpython-845037018d9255b4cdb567d977dfaeae4b47b5e0.tar.gz
cpython-845037018d9255b4cdb567d977dfaeae4b47b5e0.tar.bz2
Generate new style exception initializer (Jack).
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/bgenModule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenModule.py b/Tools/bgen/bgen/bgenModule.py
index 2baa398..f55de97 100644
--- a/Tools/bgen/bgen/bgenModule.py
+++ b/Tools/bgen/bgen/bgenModule.py
@@ -75,7 +75,7 @@ class Module(GeneratorGroup):
Output()
def exceptionInitializer(self):
- return """PyString_FromString("%s.Error")""" % self.name
+ return """PyErr_NewException("%s.Error", NULL, NULL)""" % self.name
def _test():