diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
commit | a1abb728bc0d3898539ea89effa7906a50366f1a (patch) | |
tree | 91b7f25e125d8c550fa277e32023a2a39a249619 /Modules/md5module.c | |
parent | 767bf49b6b3d8825cfa5c52c2e8019bd23429fcd (diff) | |
download | cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.zip cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.gz cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.bz2 |
Use METH_OLDARGS instead of numeric constant 0 in method def. tables
Diffstat (limited to 'Modules/md5module.c')
-rw-r--r-- | Modules/md5module.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/md5module.c b/Modules/md5module.c index 78a2b45..591ba28 100644 --- a/Modules/md5module.c +++ b/Modules/md5module.c @@ -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 */ }; |