From 43713e5a2899930a8698e244b0d0fef59a676d17 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 29 Feb 2000 13:59:29 +0000 Subject: Massive patch by Skip Montanaro to add ":name" to as many PyArg_ParseTuple() format string arguments as possible. --- Modules/audioop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/audioop.c') diff --git a/Modules/audioop.c b/Modules/audioop.c index 02a30c6c26..702ca90a5b 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -981,7 +981,7 @@ audioop_ratecv(self, args) 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 @@ audioop_ratecv(self, args) } 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; } } -- cgit v1.2.1