diff options
Diffstat (limited to 'Python/clinic/bltinmodule.c.h')
-rw-r--r-- | Python/clinic/bltinmodule.c.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index cc26155..0bd859d 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -109,18 +109,18 @@ PyDoc_STRVAR(builtin_chr__doc__, "Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff."); #define BUILTIN_CHR_METHODDEF \ - {"chr", (PyCFunction)builtin_chr, METH_VARARGS, builtin_chr__doc__}, + {"chr", (PyCFunction)builtin_chr, METH_O, builtin_chr__doc__}, static PyObject * builtin_chr_impl(PyModuleDef *module, int i); static PyObject * -builtin_chr(PyModuleDef *module, PyObject *args) +builtin_chr(PyModuleDef *module, PyObject *arg) { PyObject *return_value = NULL; int i; - if (!PyArg_ParseTuple(args, + if (!PyArg_Parse(arg, "i:chr", &i)) goto exit; @@ -656,4 +656,4 @@ builtin_issubclass(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=2da46de189e48d26 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=12db4cde92eb11b3 input=a9049054013a1b77]*/ |