diff options
author | Guido van Rossum <guido@python.org> | 1997-10-08 15:21:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-08 15:21:57 (GMT) |
commit | 845037018d9255b4cdb567d977dfaeae4b47b5e0 (patch) | |
tree | 5e9c7e47c75869feba92ae5bbff83230b90a32fc /Tools | |
parent | c0be2f5d569f5a70f083f4f8eaf6e8758b342e03 (diff) | |
download | cpython-845037018d9255b4cdb567d977dfaeae4b47b5e0.zip cpython-845037018d9255b4cdb567d977dfaeae4b47b5e0.tar.gz cpython-845037018d9255b4cdb567d977dfaeae4b47b5e0.tar.bz2 |
Generate new style exception initializer (Jack).
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/bgen/bgen/bgenModule.py | 2 |
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(): |