Unverified Commit cda7a615 authored by Alex Martelli's avatar Alex Martelli Committed by GitHub

Update ast.c

Clarify one potentially confusing error message
parent 2c0c68d9
......@@ -2841,7 +2841,7 @@ ast_for_call(struct compiling *c, const node *n, expr_ty func, bool allowgen)
}
else if (e->kind != Name_kind) {
ast_error(c, chch,
"keyword can't be an expression");
"keyword argument can't be an expression");
return NULL;
}
else if (forbidden_name(c, e->v.Name.id, ch, 1)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment