diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-01-17 23:15:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-01-17 23:15:58 (GMT) |
commit | 43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch) | |
tree | 1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/mpzmodule.c | |
parent | c0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff) | |
download | cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2 |
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/mpzmodule.c')
-rw-r--r-- | Modules/mpzmodule.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index 04057f1..c4e2993 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c @@ -1608,17 +1608,17 @@ static PyTypeObject MPZtype = { static PyMethodDef mpz_functions[] = { #if 0 - {initialiser_name, MPZ_mpz}, + {initialiser_name, MPZ_mpz, METH_OLDARGS}, #else /* 0 */ /* until guido ``fixes'' struct PyMethodDef */ - {(char *)initialiser_name, MPZ_mpz}, + {(char *)initialiser_name, MPZ_mpz, METH_OLDARGS}, #endif /* 0 else */ - {"powm", MPZ_powm}, - {"gcd", MPZ_gcd}, - {"gcdext", MPZ_gcdext}, - {"sqrt", MPZ_sqrt}, - {"sqrtrem", MPZ_sqrtrem}, - {"divm", MPZ_divm}, + {"powm", MPZ_powm, METH_OLDARGS}, + {"gcd", MPZ_gcd, METH_OLDARGS}, + {"gcdext", MPZ_gcdext, METH_OLDARGS}, + {"sqrt", MPZ_sqrt, METH_OLDARGS}, + {"sqrtrem", MPZ_sqrtrem, METH_OLDARGS}, + {"divm", MPZ_divm, METH_OLDARGS}, {NULL, NULL} /* Sentinel */ }; |