From 5cf6394b126bcbc7a3e97d88b8b2d6fd51f3bee7 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 25 Oct 2003 06:41:37 +0000 Subject: Use PyArg_UnpackTuple() where possible. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 29804f5..0309f1de 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1806,7 +1806,7 @@ builtin_sum(PyObject *self, PyObject *args) PyObject *result = NULL; PyObject *temp, *item, *iter; - if (!PyArg_ParseTuple(args, "O|O:sum", &seq, &result)) + if (!PyArg_UnpackTuple(args, "sum", 1, 2, &seq, &result)) return NULL; iter = PyObject_GetIter(seq); -- cgit v0.12