mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-25 06:57:14 +08:00
Fix indentation according to PEP8 in api.py
This commit is contained in:
@@ -67,7 +67,7 @@ class Script(object):
|
|||||||
source_path, source=self.source, position=self.pos)
|
source_path, source=self.source, position=self.pos)
|
||||||
self._source_path = source_path
|
self._source_path = source_path
|
||||||
self.source_path = None if source_path is None \
|
self.source_path = None if source_path is None \
|
||||||
else os.path.abspath(source_path)
|
else os.path.abspath(source_path)
|
||||||
debug.speed('init')
|
debug.speed('init')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
@@ -359,7 +359,7 @@ class Script(object):
|
|||||||
definitions = set(defs)
|
definitions = set(defs)
|
||||||
for d in defs:
|
for d in defs:
|
||||||
if isinstance(d.parent, pr.Import) \
|
if isinstance(d.parent, pr.Import) \
|
||||||
and d.start_pos == (0, 0):
|
and d.start_pos == (0, 0):
|
||||||
i = imports.ImportPath(d.parent).follow(is_goto=True)
|
i = imports.ImportPath(d.parent).follow(is_goto=True)
|
||||||
definitions.remove(d)
|
definitions.remove(d)
|
||||||
definitions |= follow_inexistent_imports(i)
|
definitions |= follow_inexistent_imports(i)
|
||||||
|
|||||||
Reference in New Issue
Block a user