diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-07-03 18:20:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-03 18:20:15 (GMT) |
commit | 6969eaf4682beb01bc95eeb14f5ce6c01312e297 (patch) | |
tree | c81a3d9bca3e9d01f557c46a8534a4e3873403f9 /Modules/clinic/resource.c.h | |
parent | aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c (diff) | |
download | cpython-6969eaf4682beb01bc95eeb14f5ce6c01312e297.zip cpython-6969eaf4682beb01bc95eeb14f5ce6c01312e297.tar.gz cpython-6969eaf4682beb01bc95eeb14f5ce6c01312e297.tar.bz2 |
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)
the bare METH_FASTCALL be used for functions with positional-only
parameters.
Diffstat (limited to 'Modules/clinic/resource.c.h')
-rw-r--r-- | Modules/clinic/resource.c.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/clinic/resource.c.h b/Modules/clinic/resource.c.h index 7efdbe4..cb84512 100644 --- a/Modules/clinic/resource.c.h +++ b/Modules/clinic/resource.c.h @@ -66,16 +66,12 @@ static PyObject * resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits); static PyObject * -resource_setrlimit(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +resource_setrlimit(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int resource; PyObject *limits; - if (!_PyArg_NoStackKeywords("setrlimit", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "iO:setrlimit", &resource, &limits)) { goto exit; @@ -161,4 +157,4 @@ exit: #ifndef RESOURCE_PRLIMIT_METHODDEF #define RESOURCE_PRLIMIT_METHODDEF #endif /* !defined(RESOURCE_PRLIMIT_METHODDEF) */ -/*[clinic end generated code: output=158aace6e532949e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d7dabf49ce5b767f input=a9049054013a1b77]*/ |