don't count keyword arguments as positional #9943

This commit is contained in:
Benjamin Peterson 2010-09-25 03:14:33 +00:00
parent a847c81914
commit 81437c9025
2 changed files with 4 additions and 1 deletions

View file

@ -3104,7 +3104,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
defcount ? "at most" : "exactly",
co->co_argcount,
co->co_argcount == 1 ? "" : "s",
argcount + kwcount);
argcount);
goto fail;
}
n = co->co_argcount;