summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 37a4168..23fefe4 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1,3 +1,4 @@
+
/***********************************************************
Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
The Netherlands.
@@ -461,7 +462,9 @@ eval_code2(co, globals, locals,
}
if (j >= co->co_argcount) {
if (kwdict == NULL) {
- err_setval(TypeError, keyword);
+ PyErr_Format(TypeError,
+ "unexpected keyword argument: %.400s",
+ getstringvalue(keyword));
goto fail;
}
mappinginsert(kwdict, keyword, value);