Set the line number correctly for a nested function with an exec or

import *.  Mark the offending stmt rather than the function def line.
This commit is contained in:
Jeremy Hylton 2001-03-22 03:57:58 +00:00
parent 280e6bd742
commit 2e2cded1b5
2 changed files with 6 additions and 2 deletions

View file

@ -46,6 +46,7 @@ typedef struct _symtable_entry {
int ste_nested; /* true if scope is nested */
int ste_child_free; /* true if a child scope has free variables,
including free refs to globals */
int ste_opt_lineno; /* lineno of last exec or import * */
struct symtable *ste_table;
} PySymtableEntryObject;