Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34cb852

Browse files
committed
Use symbolic name for METH_VARAGS.
1 parent f2fc934 commit 34cb852

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/bgen/bgen/bgenGenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def reference(self, name = None):
6868
if self.condition:
6969
Output()
7070
Output(self.condition)
71-
Output("{\"%s\", (PyCFunction)%s_%s, 1,", name, self.prefix, self.name)
71+
Output("{\"%s\", (PyCFunction)%s_%s, METH_VARARGS,", name, self.prefix, self.name)
7272
Output(" PyDoc_STR(%s)},", stringify(docstring))
7373
if self.condition:
7474
Output("#endif")

0 commit comments

Comments
 (0)