Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
merchise
cpython
Commits
cda7a615
Unverified
Commit
cda7a615
authored
Dec 04, 2017
by
Alex Martelli
Committed by
GitHub
Dec 04, 2017
Browse files
Update ast.c
Clarify one potentially confusing error message
parent
2c0c68d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Python/ast.c
Python/ast.c
+1
-1
No files found.
Python/ast.c
View file @
cda7a615
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment