diff options
author | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 +0000 |
commit | 9c6a95f1147c59ba93e80cf55ac1682748c518ed (patch) | |
tree | eea269daa2fcad11db92b34a67364bd72d48894e /Modules/audioop.c | |
parent | 19ff7ef2bf1cb726f4f929a3bb21aa920ee8525d (diff) | |
download | cpython-9c6a95f1147c59ba93e80cf55ac1682748c518ed.tar.gz |
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r-- | Modules/audioop.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |