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.
diff --git a/Python/symtable.c b/Python/symtable.c
index cbf0344..46efe4b 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -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;