diff options
author | Georg Brandl <georg@python.org> | 2007-09-01 15:25:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-01 15:25:27 (GMT) |
commit | 34cb852611566f49bcb90c87e7cd6dfebbcf1dff (patch) | |
tree | 346c2033e07daac54d0b529b7df310c93f9dcd60 /Tools | |
parent | f2fc934a77fef3ef368f4a41e05e67b846821a12 (diff) | |
download | cpython-34cb852611566f49bcb90c87e7cd6dfebbcf1dff.zip cpython-34cb852611566f49bcb90c87e7cd6dfebbcf1dff.tar.gz cpython-34cb852611566f49bcb90c87e7cd6dfebbcf1dff.tar.bz2 |
Use symbolic name for METH_VARAGS.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/bgen/bgen/bgenGenerator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |