diff options
author | Raymond Hettinger <python@rcn.com> | 2003-10-25 06:41:37 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-10-25 06:41:37 (GMT) |
commit | 5cf6394b126bcbc7a3e97d88b8b2d6fd51f3bee7 (patch) | |
tree | 8562a3674472af98808947e8552943763d142113 | |
parent | 4514369f27c8c81af0736782c98689457df39ed5 (diff) | |
download | cpython-5cf6394b126bcbc7a3e97d88b8b2d6fd51f3bee7.zip cpython-5cf6394b126bcbc7a3e97d88b8b2d6fd51f3bee7.tar.gz cpython-5cf6394b126bcbc7a3e97d88b8b2d6fd51f3bee7.tar.bz2 |
Use PyArg_UnpackTuple() where possible.
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |