1
0
forked from VimPlug/jedi

Rework some of the analysis statement gathering.

This commit is contained in:
Dave Halter
2015-03-05 13:36:41 +01:00
parent b489019f5b
commit e698e6aeeb
4 changed files with 35 additions and 18 deletions

View File

@@ -149,7 +149,7 @@ class NameFinder(object):
continue
if isinstance(self.name_str, pr.Name):
origin_scope = self.name_str.get_definition().parent
origin_scope = self.name_str.get_parent_until(pr.Scope, reverse=True)
else:
origin_scope = None
if isinstance(stmt.parent, compiled.CompiledObject):