From 34cb852611566f49bcb90c87e7cd6dfebbcf1dff Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 1 Sep 2007 15:25:27 +0000 Subject: Use symbolic name for METH_VARAGS. --- Tools/bgen/bgen/bgenGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/bgen/bgen/bgenGenerator.py b/Tools/bgen/bgen/bgenGenerator.py index e364d01..f554fe2 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") -- cgit v0.12