diff Python/symtable.c @ 63114:9057ea014461

revert unintended changes
author Benjamin Peterson <benjamin@python.org>
date Tue, 20 Jul 2010 22:39:34 +0000
parents cbd6f5d24af9
children 861c35cef7aa
line wrap: on
line diff
--- a/Python/symtable.c	Tue Jul 20 22:37:19 2010 +0000
+++ b/Python/symtable.c	Tue Jul 20 22:39:34 2010 +0000
@@ -432,14 +432,7 @@
         return PySet_Add(free, name) >= 0;
     }
     if (flags & DEF_BOUND) {
-        if (ste->ste_type == ClassBlock &&
-            !(flags & DEF_PARAM) &&
-            bound && PySet_Contains(bound, name)) {
-            SET_SCOPE(scopes, name, LOCAL_ONLY);
-        }
-        else {
-            SET_SCOPE(scopes, name, LOCAL);
-        }
+        SET_SCOPE(scopes, name, LOCAL);
         if (PySet_Add(local, name) < 0)
             return 0;
         if (PySet_Discard(global, name) < 0)
@@ -496,7 +489,7 @@
         long scope;
         assert(PyLong_Check(v));
         scope = PyLong_AS_LONG(v);
-        if (scope != LOCAL && scope != LOCAL_ONLY)
+        if (scope != LOCAL)
             continue;
         if (!PySet_Contains(free, name))
             continue;