forked from VimPlug/jedi
Rename explicit_absolute_import to has_explicit_absolute_import
This commit is contained in:
@@ -255,7 +255,7 @@ class ImportPath(pr.Base):
|
||||
if self.file_path:
|
||||
sys_path_mod = list(self.sys_path_with_modifications())
|
||||
module = self.import_stmt.get_parent_until()
|
||||
if not module.explicit_absolute_import:
|
||||
if not module.has_explicit_absolute_import:
|
||||
# If the module explicitly asks for absolute imports,
|
||||
# there's probably a bogus local one.
|
||||
sys_path_mod.insert(0, self.file_path)
|
||||
|
||||
@@ -296,7 +296,7 @@ class Scope(Simple, IsScope):
|
||||
return p
|
||||
|
||||
@property
|
||||
def explicit_absolute_import(self):
|
||||
def has_explicit_absolute_import(self):
|
||||
"""
|
||||
Checks if imports in this scope are explicitly absolute, i.e. there
|
||||
is a ``__future__`` import.
|
||||
|
||||
Reference in New Issue
Block a user