summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/symtable.c2
1 files changed, 1 insertions, 1 deletions
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 @@ check_unoptimized(const PySTEntryObject* ste) {
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;