Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c
index b3511d8..b1fef39 100644
--- a/Modules/rotormodule.c
+++ b/Modules/rotormodule.c
@@ -583,7 +583,7 @@
{
char *key;
- if (!PyArg_ParseTuple(args, "s", &key))
+ if (!PyArg_ParseTuple(args, "s:setkey", &key))
return NULL;
set_key(self, key);
@@ -639,7 +639,7 @@
int len;
int num_rotors = 6;
- if (!PyArg_ParseTuple(args, "s#|i", &string, &len, &num_rotors))
+ if (!PyArg_ParseTuple(args, "s#|i:newrotor", &string, &len, &num_rotors))
return NULL;
r = rotorobj_new(num_rotors, string);