Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28db0fd

Browse files
committed
merge 3.2
2 parents 267ca6c + b7149ca commit 28db0fd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Python/symtable.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,12 +1576,12 @@ symtable_visit_alias(struct symtable *st, alias_ty a)
15761576
}
15771577
else {
15781578
if (st->st_cur->ste_type != ModuleBlock) {
1579-
int lineno = st->st_cur->ste_lineno;
1580-
int col_offset = st->st_cur->ste_col_offset;
1581-
PyErr_SetString(PyExc_SyntaxError, IMPORT_STAR_WARNING);
1582-
PyErr_SyntaxLocationEx(st->st_filename, lineno, col_offset);
1583-
Py_DECREF(store_name);
1584-
return 0;
1579+
int lineno = st->st_cur->ste_lineno;
1580+
int col_offset = st->st_cur->ste_col_offset;
1581+
PyErr_SetString(PyExc_SyntaxError, IMPORT_STAR_WARNING);
1582+
PyErr_SyntaxLocationEx(st->st_filename, lineno, col_offset);
1583+
Py_DECREF(store_name);
1584+
return 0;
15851585
}
15861586
st->st_cur->ste_unoptimized |= OPT_IMPORT_STAR;
15871587
Py_DECREF(store_name);

0 commit comments

Comments
 (0)