mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Use symbolic name for METH_VARAGS.
This commit is contained in:
parent
f2fc934a77
commit
34cb852611
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ class BaseFunctionGenerator:
|
||||||
if self.condition:
|
if self.condition:
|
||||||
Output()
|
Output()
|
||||||
Output(self.condition)
|
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))
|
Output(" PyDoc_STR(%s)},", stringify(docstring))
|
||||||
if self.condition:
|
if self.condition:
|
||||||
Output("#endif")
|
Output("#endif")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue