1
0
forked from VimPlug/jedi
This commit is contained in:
David Halter
2012-10-21 14:33:14 +02:00
parent 51cfb43716
commit 99739754ef
4 changed files with 11 additions and 4 deletions

View File

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