]> granicus.if.org Git - python/commitdiff
Use symbolic name for METH_VARAGS.
authorGeorg Brandl <georg@python.org>
Sat, 1 Sep 2007 15:25:27 +0000 (15:25 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 1 Sep 2007 15:25:27 +0000 (15:25 +0000)
Tools/bgen/bgen/bgenGenerator.py

index e364d01fc8a3f3f529b2422a887dcf8c9555f6a6..f554fe21604a43f34ea96434dca2664c41f39246 100644 (file)
@@ -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")