From: Jeremy Hylton Date: Mon, 6 Aug 2001 19:55:17 +0000 (+0000) Subject: Fix error message for import * in function/class scope X-Git-Tag: v2.2a3~791 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba591bf3bd6af6ff5bbbd91dcceef9c178f5110f;p=thirdparty%2FPython%2Fcpython.git Fix error message for import * in function/class scope --- diff --git a/Python/compile.c b/Python/compile.c index dc31d2fce40e..a30d663219f3 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;