Generate new style exception initializer (Jack).

This commit is contained in:
Guido van Rossum 1997-10-08 15:21:57 +00:00
parent c0be2f5d56
commit 845037018d

View file

@ -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():