mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Generate new style exception initializer (Jack).
This commit is contained in:
parent
c0be2f5d56
commit
845037018d
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue