Use METH_OLDARGS instead of numeric constant 0 in method def. tables

This commit is contained in:
Andrew M. Kuchling 2000-08-03 02:34:44 +00:00
parent 767bf49b6b
commit a1abb728bc
9 changed files with 78 additions and 55 deletions

View file

@ -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 */
};