mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Use METH_OLDARGS instead of numeric constant 0 in method def. tables
This commit is contained in:
parent
767bf49b6b
commit
a1abb728bc
9 changed files with 78 additions and 55 deletions
|
|
@ -126,9 +126,12 @@ Return a copy (``clone'') of the md5 object.";
|
|||
|
||||
|
||||
static PyMethodDef md5_methods[] = {
|
||||
{"update", (PyCFunction)md5_update, 0, update_doc},
|
||||
{"digest", (PyCFunction)md5_digest, 0, digest_doc},
|
||||
{"copy", (PyCFunction)md5_copy, 0, copy_doc},
|
||||
{"update", (PyCFunction)md5_update,
|
||||
METH_OLDARGS, update_doc},
|
||||
{"digest", (PyCFunction)md5_digest,
|
||||
METH_OLDARGS, digest_doc},
|
||||
{"copy", (PyCFunction)md5_copy,
|
||||
METH_OLDARGS, copy_doc},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue