1
0
forked from VimPlug/jedi

Rename explicit_absolute_import to has_explicit_absolute_import

This commit is contained in:
Laurens Van Houtven
2013-07-10 12:12:33 +02:00
parent 1682f24703
commit b5ee375fe1
3 changed files with 5 additions and 5 deletions

View File

@@ -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)

View File

@@ -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.