mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Use METH_VARARGS instead of numeric constant 1 in method def. tables
This commit is contained in:
parent
14f515844d
commit
e365fb8d1f
12 changed files with 178 additions and 107 deletions
|
@ -227,8 +227,8 @@ is made.";
|
|||
/* List of functions exported by this module */
|
||||
|
||||
static PyMethodDef md5_functions[] = {
|
||||
{"new", (PyCFunction)MD5_new, 1, new_doc},
|
||||
{"md5", (PyCFunction)MD5_new, 1, new_doc}, /* Backward compatibility */
|
||||
{"new", (PyCFunction)MD5_new, METH_VARARGS, new_doc},
|
||||
{"md5", (PyCFunction)MD5_new, METH_VARARGS, new_doc}, /* Backward compatibility */
|
||||
{NULL, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue