forked from VimPlug/jedi
pep8
This commit is contained in:
@@ -426,7 +426,8 @@ class Script(object):
|
||||
This would return `None`.
|
||||
"""
|
||||
def check_user_stmt(user_stmt):
|
||||
if user_stmt is None or not isinstance(user_stmt, parsing.Statement):
|
||||
if user_stmt is None \
|
||||
or not isinstance(user_stmt, parsing.Statement):
|
||||
return None, 0
|
||||
ass = helpers.fast_parent_copy(user_stmt.get_assignment_calls())
|
||||
|
||||
@@ -460,7 +461,6 @@ class Script(object):
|
||||
else:
|
||||
raise NotFoundError()
|
||||
|
||||
|
||||
try:
|
||||
call, index = check_cache()
|
||||
except NotFoundError:
|
||||
|
||||
@@ -246,4 +246,3 @@ def scan_array_for_pos(arr, pos):
|
||||
# The third return is just necessary for recursion inside, because
|
||||
# it needs to know when to stop iterating.
|
||||
return call, index, stop
|
||||
|
||||
|
||||
@@ -70,7 +70,8 @@ class ModuleWithCursor(Module):
|
||||
self._parser = parsing.PyFuzzyParser(self.source, self.path,
|
||||
self.position)
|
||||
if self.path is not None:
|
||||
builtin.CachedModule.cache[self.path] = time.time(), self._parser
|
||||
builtin.CachedModule.cache[self.path] = time.time(), \
|
||||
self._parser
|
||||
return self._parser
|
||||
|
||||
def get_path_until_cursor(self):
|
||||
|
||||
Reference in New Issue
Block a user