1
0
forked from VimPlug/jedi

private variables are not accessible anymore, but still completeable - fixes and tests for #56

This commit is contained in:
David Halter
2012-11-22 23:50:26 +01:00
parent 7d38fc6513
commit 936f7f9fd5
4 changed files with 38 additions and 9 deletions
+3 -2
View File
@@ -157,6 +157,7 @@ class ImportPath(parsing.Base):
scopes += itertools.chain.from_iterable(
remove_star_imports(s) for s in scopes)
# follow the rest of the import (not FS -> classes, functions)
if len(rest) > 1 or rest and self.is_like_search:
scopes = []
elif rest:
@@ -166,8 +167,8 @@ class ImportPath(parsing.Base):
for s in scopes)
else:
scopes = itertools.chain.from_iterable(
evaluate.follow_path(iter(rest), s)
for s in scopes)
evaluate.follow_path(iter(rest), s, s)
for s in scopes)
scopes = list(scopes)
if self.is_nested_import():