commit | 845037018d9255b4cdb567d977dfaeae4b47b5e0 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Oct 08 15:21:57 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Oct 08 15:21:57 1997 +0000 |
tree | 5e9c7e47c75869feba92ae5bbff83230b90a32fc | |
parent | c0be2f5d569f5a70f083f4f8eaf6e8758b342e03 [diff] |
Generate new style exception initializer (Jack).
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 @@ Output() def exceptionInitializer(self): - return """PyString_FromString("%s.Error")""" % self.name + return """PyErr_NewException("%s.Error", NULL, NULL)""" % self.name def _test():