Commit e5fa5fe8 authored by Benjamin Peterson's avatar Benjamin Peterson

remove duplicate check

parent ff108187
......@@ -2120,10 +2120,6 @@ ast_for_expr_stmt(struct compiling *c, const node *n)
for (i = 0; i < NCH(n) - 2; i += 2) {
expr_ty e;
node *ch = CHILD(n, i);
if (TYPE(ch) == yield_expr) {
ast_error(ch, "assignment to yield expression not possible");
return NULL;
}
e = ast_for_testlist(c, ch);
/* set context to assign */
......
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