diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-11-20 01:16:58 (GMT) | 
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-11-20 01:16:58 (GMT) | 
| commit | 009b89d22a02af5120e07fb1e8970bf35f45926f (patch) | |
| tree | 68744832b0222d34800a6af122c8bb747aa9ef92 /Python/symtable.c | |
| parent | d16d0abf0bdf3228beed0977a953fa132f5599c3 (diff) | |
| download | cpython-009b89d22a02af5120e07fb1e8970bf35f45926f.zip cpython-009b89d22a02af5120e07fb1e8970bf35f45926f.tar.gz cpython-009b89d22a02af5120e07fb1e8970bf35f45926f.tar.bz2  | |
genexps have linenos
Diffstat (limited to 'Python/symtable.c')
| -rw-r--r-- | Python/symtable.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 40eb866..d782a19 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1468,7 +1468,7 @@ symtable_visit_genexp(struct symtable *st, expr_ty e)  	VISIT(st, expr, outermost->iter);  	/* Create generator scope for the rest */  	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;  	}  	st->st_cur->ste_generator = 1;  | 
