diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-08-06 19:55:17 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-08-06 19:55:17 (GMT) |
commit | ba591bf3bd6af6ff5bbbd91dcceef9c178f5110f (patch) | |
tree | 6bff83d9f5a7f58eac4667681484d07f665dded6 | |
parent | 8a6f29530388277bdb3e5432eaf3c6c6571ab304 (diff) | |
download | cpython-ba591bf3bd6af6ff5bbbd91dcceef9c178f5110f.zip cpython-ba591bf3bd6af6ff5bbbd91dcceef9c178f5110f.tar.gz cpython-ba591bf3bd6af6ff5bbbd91dcceef9c178f5110f.tar.bz2 |
Fix error message for import * in function/class scope
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index dc31d2f..a30d663 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -5296,7 +5296,7 @@ symtable_import(struct symtable *st, node *n) 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; |