summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-03-31 14:37:44 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-03-31 14:37:44 (GMT)
commit031829d3ef22fcc0f5a6d325fee075ee11186599 (patch)
tree1339a83e8d8b8fd86ca803ebbb63406465ae26b6 /Python/marshal.c
parent93cf79fde418725f2c2334eb062f9999da9e806d (diff)
downloadcpython-031829d3ef22fcc0f5a6d325fee075ee11186599.zip
cpython-031829d3ef22fcc0f5a6d325fee075ee11186599.tar.gz
cpython-031829d3ef22fcc0f5a6d325fee075ee11186599.tar.bz2
Use symbolic METH_VARARGS instead of 1 for ml_flags
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 0d21e84..3cdaecd 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -852,10 +852,10 @@ marshal_loads(PyObject *self, PyObject *args)
}
static PyMethodDef marshal_methods[] = {
- {"dump", marshal_dump, 1},
- {"load", marshal_load, 1},
- {"dumps", marshal_dumps, 1},
- {"loads", marshal_loads, 1},
+ {"dump", marshal_dump, METH_VARARGS},
+ {"load", marshal_load, METH_VARARGS},
+ {"dumps", marshal_dumps, METH_VARARGS},
+ {"loads", marshal_loads, METH_VARARGS},
{NULL, NULL} /* sentinel */
};