Remove is_package on contexts
This commit is contained in:
1 parent
76e0e6a8c5
commit
f43d144e23
4 files changed
+2
-9
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user