mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #27810: Rerun Argument Clinic on all modules
This commit is contained in:
parent
f0ccbbbc57
commit
37e4ef7b17
25 changed files with 453 additions and 452 deletions
|
|
@ -72,20 +72,20 @@ PyDoc_STRVAR(_sha1_sha1__doc__,
|
|||
"Return a new SHA1 hash object; optionally initialized with a string.");
|
||||
|
||||
#define _SHA1_SHA1_METHODDEF \
|
||||
{"sha1", (PyCFunction)_sha1_sha1, METH_VARARGS|METH_KEYWORDS, _sha1_sha1__doc__},
|
||||
{"sha1", (PyCFunction)_sha1_sha1, METH_FASTCALL, _sha1_sha1__doc__},
|
||||
|
||||
static PyObject *
|
||||
_sha1_sha1_impl(PyObject *module, PyObject *string);
|
||||
|
||||
static PyObject *
|
||||
_sha1_sha1(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
_sha1_sha1(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static const char * const _keywords[] = {"string", NULL};
|
||||
static _PyArg_Parser _parser = {"|O:sha1", _keywords, 0};
|
||||
PyObject *string = NULL;
|
||||
|
||||
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
|
||||
if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser,
|
||||
&string)) {
|
||||
goto exit;
|
||||
}
|
||||
|
|
@ -94,4 +94,4 @@ _sha1_sha1(PyObject *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=549a5d08c248337d input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=1430450f3f806895 input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue