summaryrefslogtreecommitdiffstats
path: root/Modules/rotormodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
commit43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch)
tree1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/rotormodule.c
parentc0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff)
downloadcpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/rotormodule.c')
-rw-r--r--Modules/rotormodule.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c
index 7c1131c..23ded46 100644
--- a/Modules/rotormodule.c
+++ b/Modules/rotormodule.c
@@ -558,11 +558,11 @@ rotorobj_setkey(Rotorobj *self, PyObject *args)
static struct PyMethodDef
rotorobj_methods[] = {
- {"encrypt", (PyCFunction)rotorobj_encrypt},
- {"encryptmore", (PyCFunction)rotorobj_encrypt_more},
- {"decrypt", (PyCFunction)rotorobj_decrypt},
- {"decryptmore", (PyCFunction)rotorobj_decrypt_more},
- {"setkey", (PyCFunction)rotorobj_setkey, 1},
+ {"encrypt", (PyCFunction)rotorobj_encrypt, METH_OLDARGS},
+ {"encryptmore", (PyCFunction)rotorobj_encrypt_more, METH_OLDARGS},
+ {"decrypt", (PyCFunction)rotorobj_decrypt, METH_OLDARGS},
+ {"decryptmore", (PyCFunction)rotorobj_decrypt_more, METH_OLDARGS},
+ {"setkey", (PyCFunction)rotorobj_setkey, METH_VARARGS},
{NULL, NULL} /* sentinel */
};