mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue