Kaydet (Commit) 84503701 authored tarafından Guido van Rossum's avatar Guido van Rossum

Generate new style exception initializer (Jack).

üst c0be2f5d
......@@ -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():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment