summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/pwdmodule.c.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-03 21:12:11 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-03 21:12:11 (GMT)
commit92e8af67a89b204efedad3373c292c0b3c52072c (patch)
tree0e319cfdf2015aedc0e932c2a30ad71734aa0824 /Modules/clinic/pwdmodule.c.h
parent1009bf18b38a8d36298575191dd8fdf43f8f9097 (diff)
downloadcpython-92e8af67a89b204efedad3373c292c0b3c52072c.zip
cpython-92e8af67a89b204efedad3373c292c0b3c52072c.tar.gz
cpython-92e8af67a89b204efedad3373c292c0b3c52072c.tar.bz2
Issue #23492: Argument Clinic now generates argument parsing code with
PyArg_Parse instead of PyArg_ParseTuple if possible.
Diffstat (limited to 'Modules/clinic/pwdmodule.c.h')
-rw-r--r--Modules/clinic/pwdmodule.c.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/clinic/pwdmodule.c.h b/Modules/clinic/pwdmodule.c.h
index 6a40042..ffe7c1c 100644
--- a/Modules/clinic/pwdmodule.c.h
+++ b/Modules/clinic/pwdmodule.c.h
@@ -22,18 +22,18 @@ PyDoc_STRVAR(pwd_getpwnam__doc__,
"See `help(pwd)` for more on password database entries.");
#define PWD_GETPWNAM_METHODDEF \
- {"getpwnam", (PyCFunction)pwd_getpwnam, METH_VARARGS, pwd_getpwnam__doc__},
+ {"getpwnam", (PyCFunction)pwd_getpwnam, METH_O, pwd_getpwnam__doc__},
static PyObject *
pwd_getpwnam_impl(PyModuleDef *module, PyObject *arg);
static PyObject *
-pwd_getpwnam(PyModuleDef *module, PyObject *args)
+pwd_getpwnam(PyModuleDef *module, PyObject *arg_)
{
PyObject *return_value = NULL;
PyObject *arg;
- if (!PyArg_ParseTuple(args,
+ if (!PyArg_Parse(arg_,
"U:getpwnam",
&arg))
goto exit;
@@ -70,4 +70,4 @@ pwd_getpwall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
#ifndef PWD_GETPWALL_METHODDEF
#define PWD_GETPWALL_METHODDEF
#endif /* !defined(PWD_GETPWALL_METHODDEF) */
-/*[clinic end generated code: output=2e23f920020a750a input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e7d5ac24b20e91ae input=a9049054013a1b77]*/