All pastes #608602 Raw Edit

Diff

public text v1 · immutable
·published 2007-07-08 12:29 UTC
rendered paste body
Index: codegen/codegen.py===================================================================--- codegen/codegen.py	(revision 2835)+++ codegen/codegen.py	(working copy)@@ -1454,6 +1454,11 @@             'void\n' + self.prefix +             '_add_constants(PyObject *module, const gchar *strip_prefix)\n{\n') +        self.fp.write(+            '#ifdef VERSION\n'+            '    PyModule_AddStringConstant(module, "__version__", VERSION);\n'+            '#endif\n')+         for enum in self.get_enums():             if enum.typecode is None:                 for nick, value in enum.values: