[Python-checkins] python/dist/src/Python symtable.c,2.16,2.17

nascheme@users.sourceforge.net nascheme at users.sourceforge.net
Sun Oct 23 20:50:39 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22138/Python

Modified Files:
	symtable.c 
Log Message:
Fix check_unoptimized() function.  The only optimized namespaces are
in function blocks.  This elimiates spurious warnings about "import *" and
related statements at the class level.


Index: symtable.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/symtable.c,v
retrieving revision 2.16
retrieving revision 2.17
diff -u -d -r2.16 -r2.17
--- symtable.c	23 Oct 2005 18:37:42 -0000	2.16
+++ symtable.c	23 Oct 2005 18:50:36 -0000	2.17
@@ -445,7 +445,7 @@
 	char buf[300];
 	const char* trailer;
 
-	if (ste->ste_type == ModuleBlock || !ste->ste_unoptimized
+	if (ste->ste_type != FunctionBlock || !ste->ste_unoptimized
 	    || !(ste->ste_free || ste->ste_child_free))
 		return 1;
 



More information about the Python-checkins mailing list