From: Georg Brandl Date: Sat, 1 Sep 2007 15:25:27 +0000 (+0000) Subject: Use symbolic name for METH_VARAGS. X-Git-Tag: v3.0a2~486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34cb852611566f49bcb90c87e7cd6dfebbcf1dff;p=python Use symbolic name for METH_VARAGS. --- diff --git a/Tools/bgen/bgen/bgenGenerator.py b/Tools/bgen/bgen/bgenGenerator.py index e364d01fc8..f554fe2160 100644 --- a/Tools/bgen/bgen/bgenGenerator.py +++ b/Tools/bgen/bgen/bgenGenerator.py @@ -68,7 +68,7 @@ class BaseFunctionGenerator: if self.condition: Output() Output(self.condition) - Output("{\"%s\", (PyCFunction)%s_%s, 1,", name, self.prefix, self.name) + Output("{\"%s\", (PyCFunction)%s_%s, METH_VARARGS,", name, self.prefix, self.name) Output(" PyDoc_STR(%s)},", stringify(docstring)) if self.condition: Output("#endif")