summaryrefslogtreecommitdiffstats
path: root/Modules/rotormodule.c
diff options
context:
space:
mode:
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 */
};