1
0
forked from VimPlug/jedi

Fix issues with module attributes

This commit is contained in:
Dave Halter
2015-01-06 01:12:55 +01:00
parent 7abdbb563c
commit 8bad12522a
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class NameFinder(object):
# Just calculate the scope from the first
stmt = names[0].get_definition()
scope = stmt.get_parent_scope()
if isinstance(stmt, (pr.CompFor, pr.Lambda)):
if isinstance(stmt, (pr.CompFor, pr.Lambda, pr.GlobalStmt)):
return names
# Private name mangling (compile.c) disallows access on names