1
0
forked from VimPlug/jedi

Remove is_package on contexts

This commit is contained in:
Dave Halter
2019-12-01 20:50:29 +01:00
parent 76e0e6a8c5
commit f43d144e23
4 changed files with 2 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ class AbstractTreeName(AbstractNameDefinition):
# In case of level == 1, it works always, because it's like a submodule
# lookup.
if import_node is not None and not (import_node.level == 1
and self.get_root_context().is_package()):
and self.get_root_context().get_value().is_package()):
# TODO improve the situation for when level is present.
if include_module_names and not import_node.level:
return tuple(n.value for n in import_node.get_path_for_name(self.tree_name))