Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
diff --git a/Modules/audioop.c b/Modules/audioop.c
index 02a30c6..702ca90 100644
--- a/Modules/audioop.c
+++ b/Modules/audioop.c
@@ -981,7 +981,7 @@
weightA = 1;
weightB = 0;
- if (!PyArg_ParseTuple(args, "s#iiiiO|ii", &cp, &len, &size, &nchannels,
+ if (!PyArg_ParseTuple(args, "s#iiiiO|ii:ratecv", &cp, &len, &size, &nchannels,
&inrate, &outrate, &state, &weightA, &weightB))
return NULL;
if (size != 1 && size != 2 && size != 4) {
@@ -1034,7 +1034,7 @@
}
for (chan = 0; chan < nchannels; chan++) {
if (!PyArg_ParseTuple(PyTuple_GetItem(samps, chan),
- "ii",&prev_i[chan],&cur_i[chan]))
+ "ii:ratecv",&prev_i[chan],&cur_i[chan]))
goto exit;
}
}