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

@ -31,7 +31,7 @@ the same alphabet as the salt.";
static PyMethodDef crypt_methods[] = {
{"crypt", crypt_crypt, 0, crypt_crypt__doc__},
{"crypt", crypt_crypt, METH_OLDARGS, crypt_crypt__doc__},
{NULL, NULL} /* sentinel */
};