summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-03-21 20:30:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-03-21 20:30:30 (GMT)
commitbb9d726357854a8dcae597e22d02f5d3a2122431 (patch)
tree4b992c7523434f75583957b045ede23739e68b53 /Python
parent965458931ff6fae2090fa4ddd95cb7f81ce2bcc1 (diff)
downloadcpython-bb9d726357854a8dcae597e22d02f5d3a2122431.zip
cpython-bb9d726357854a8dcae597e22d02f5d3a2122431.tar.gz
cpython-bb9d726357854a8dcae597e22d02f5d3a2122431.tar.bz2
take into account keyword arguments when passing too many args
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 4b0ff7e..339a351 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3060,7 +3060,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
defcount ? "at most" : "exactly",
co->co_argcount,
co->co_argcount == 1 ? "" : "s",
- argcount);
+ argcount + kwcount);
goto fail;
}
n = co->co_argcount;