Commits

Anonymous committed 3350c73

Generate new style exception initializer (Jack).

  • Participants
  • Parent commits b854ca4
  • Branches legacy-trunk

Comments (0)

Files changed (1)

Tools/bgen/bgen/bgenModule.py

 			Output()
 
 	def exceptionInitializer(self):
-		return """PyString_FromString("%s.Error")""" % self.name
+		return """PyErr_NewException("%s.Error", NULL, NULL)""" % self.name
 
 
 def _test():