commit | 799d7d61a91eb0ad3256ef9a45a90029cef93b7c | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Mon Apr 06 17:05:57 2020 +0100 |
committer | GitHub <noreply@github.com> | Mon Apr 06 17:05:57 2020 +0100 |
tree | f682be5556bd71eb9d95f12abf618e1d386f8be5 | |
parent | 38aefc585f60a77d66f4fbe5a37594a488b53474 [diff] [blame] |
bpo-40196: Fix a bug in the symtable when reporting inspecting global variables (GH-19391)
diff --git a/Lib/symtable.py b/Lib/symtable.py index 5bea7cf..ac0a64f 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py
@@ -197,7 +197,7 @@ 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)