Use METH_VARARGS instead of numeric constant 1 in method def. tables

This commit is contained in:
Andrew M. Kuchling 2000-08-03 02:06:16 +00:00
parent 14f515844d
commit e365fb8d1f
12 changed files with 178 additions and 107 deletions

View file

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