summaryrefslogtreecommitdiff
path: root/Lib/symtable.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r--Lib/symtable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py
index 5bea7cf615..ac0a64ff58 100644
--- a/Lib/symtable.py
+++ b/Lib/symtable.py
@@ -197,7 +197,7 @@ class Symbol(object):
return bool(self.__scope == GLOBAL_EXPLICIT)
def is_local(self):
- return bool(self.__flags & DEF_BOUND)
+ return bool(self.__scope in (LOCAL, CELL))
def is_annotated(self):
return bool(self.__flags & DEF_ANNOT)