diff options
author | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
commit | 43713e5a2899930a8698e244b0d0fef59a676d17 (patch) | |
tree | 3d9740aff47f70cea403a2c924a37b468d1eded6 /Modules/audioop.c | |
parent | a9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff) | |
download | cpython-43713e5a2899930a8698e244b0d0fef59a676d17.zip cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.gz cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.bz2 |
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 02a30c6..702ca90 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; } } |