diff --git a/Tools/bgen/bgen/bgenGenerator.py b/Tools/bgen/bgen/bgenGenerator.py index 62138246964..aa3966864ec 100644 --- a/Tools/bgen/bgen/bgenGenerator.py +++ b/Tools/bgen/bgen/bgenGenerator.py @@ -57,7 +57,7 @@ def reference(self, name = None): Output() Output(self.condition) Output("{\"%s\", (PyCFunction)%s_%s, 1,", name, self.prefix, self.name) - Output(" %s},", stringify(docstring)) + Output(" PyDoc_STR(%s)},", stringify(docstring)) if self.condition: Output("#endif")