mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
280e6bd742
commit
2e2cded1b5
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue