summaryrefslogtreecommitdiffstats
path: root/Modules/audioop.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
commit43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch)
tree1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/audioop.c
parentc0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff)
downloadcpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r--Modules/audioop.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c
index d9a398f..9adbc7b 100644
--- a/Modules/audioop.c
+++ b/Modules/audioop.c
@@ -1343,29 +1343,29 @@ audioop_adpcm2lin(PyObject *self, PyObject *args)
}
static PyMethodDef audioop_methods[] = {
- { "max", audioop_max },
- { "minmax", audioop_minmax },
- { "avg", audioop_avg },
- { "maxpp", audioop_maxpp },
- { "avgpp", audioop_avgpp },
- { "rms", audioop_rms },
- { "findfit", audioop_findfit },
- { "findmax", audioop_findmax },
- { "findfactor", audioop_findfactor },
- { "cross", audioop_cross },
- { "mul", audioop_mul },
- { "add", audioop_add },
- { "bias", audioop_bias },
- { "ulaw2lin", audioop_ulaw2lin },
- { "lin2ulaw", audioop_lin2ulaw },
- { "lin2lin", audioop_lin2lin },
- { "adpcm2lin", audioop_adpcm2lin },
- { "lin2adpcm", audioop_lin2adpcm },
- { "tomono", audioop_tomono },
- { "tostereo", audioop_tostereo },
- { "getsample", audioop_getsample },
- { "reverse", audioop_reverse },
- { "ratecv", audioop_ratecv, 1 },
+ { "max", audioop_max, METH_OLDARGS },
+ { "minmax", audioop_minmax, METH_OLDARGS },
+ { "avg", audioop_avg, METH_OLDARGS },
+ { "maxpp", audioop_maxpp, METH_OLDARGS },
+ { "avgpp", audioop_avgpp, METH_OLDARGS },
+ { "rms", audioop_rms, METH_OLDARGS },
+ { "findfit", audioop_findfit, METH_OLDARGS },
+ { "findmax", audioop_findmax, METH_OLDARGS },
+ { "findfactor", audioop_findfactor, METH_OLDARGS },
+ { "cross", audioop_cross, METH_OLDARGS },
+ { "mul", audioop_mul, METH_OLDARGS },
+ { "add", audioop_add, METH_OLDARGS },
+ { "bias", audioop_bias, METH_OLDARGS },
+ { "ulaw2lin", audioop_ulaw2lin, METH_OLDARGS },
+ { "lin2ulaw", audioop_lin2ulaw, METH_OLDARGS },
+ { "lin2lin", audioop_lin2lin, METH_OLDARGS },
+ { "adpcm2lin", audioop_adpcm2lin, METH_OLDARGS },
+ { "lin2adpcm", audioop_lin2adpcm, METH_OLDARGS },
+ { "tomono", audioop_tomono, METH_OLDARGS },
+ { "tostereo", audioop_tostereo, METH_OLDARGS },
+ { "getsample", audioop_getsample, METH_OLDARGS },
+ { "reverse", audioop_reverse, METH_OLDARGS },
+ { "ratecv", audioop_ratecv, METH_VARARGS },
{ 0, 0 }
};