1
0
forked from VimPlug/jedi

Make is_package a function and call it consistently

This commit is contained in:
Dave Halter
2019-12-01 19:31:31 +01:00
parent 6ffeea7eea
commit 8a26a23884
7 changed files with 19 additions and 10 deletions
+1 -1
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().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))