Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 19019:30ae3aff03bd legacy-trunk
Fix error message for import * in function/class scope
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Mon, 06 Aug 2001 19:55:17 +0000 |
| parents | 821e35706c07 |
| children | e5754f048f0b |
line wrap: on
line diff
--- a/Python/compile.c Mon Aug 06 19:45:40 2001 +0000 +++ b/Python/compile.c Mon Aug 06 19:55:17 2001 +0000 @@ -5296,7 +5296,7 @@ if (TYPE(CHILD(n, 3)) == STAR) { if (st->st_cur->ste_type != TYPE_MODULE) { symtable_warn(st, - "import * not allowed inside function"); + "import * only allowed at module level"); return; } st->st_cur->ste_optimized |= OPT_IMPORT_STAR;
