mirror of https://github.com/python/cpython
Use symbolic name for METH_VARAGS.
This commit is contained in:
parent
f2fc934a77
commit
34cb852611
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue