[Python-checkins] CVS: python/dist/src/Python compile.c,2.209,2.210
Jeremy Hylton
jhylton@users.sourceforge.net
Mon, 06 Aug 2001 12:55:19 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv7722
Modified Files:
compile.c
Log Message:
Fix error message for import * in function/class scope
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.209
retrieving revision 2.210
diff -C2 -d -r2.209 -r2.210
*** compile.c 2001/08/06 19:45:40 2.209
--- compile.c 2001/08/06 19:55:17 2.210
***************
*** 5297,5301 ****
if (st->st_cur->ste_type != TYPE_MODULE) {
symtable_warn(st,
! "import * not allowed inside function");
return;
}
--- 5297,5301 ----
if (st->st_cur->ste_type != TYPE_MODULE) {
symtable_warn(st,
! "import * only allowed at module level");
return;
}