Kaydet (Commit) 009b89d2 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

genexps have linenos

üst d16d0abf
...@@ -1468,7 +1468,7 @@ symtable_visit_genexp(struct symtable *st, expr_ty e) ...@@ -1468,7 +1468,7 @@ symtable_visit_genexp(struct symtable *st, expr_ty e)
VISIT(st, expr, outermost->iter); VISIT(st, expr, outermost->iter);
/* Create generator scope for the rest */ /* Create generator scope for the rest */
if (!GET_IDENTIFIER(genexpr) || if (!GET_IDENTIFIER(genexpr) ||
!symtable_enter_block(st, genexpr, FunctionBlock, (void *)e, 0)) { !symtable_enter_block(st, genexpr, FunctionBlock, (void *)e, e->lineno)) {
return 0; return 0;
} }
st->st_cur->ste_generator = 1; st->st_cur->ste_generator = 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