1
0
forked from VimPlug/jedi

StatementElement instead of Call and Call now inherits from that

This commit is contained in:
David Halter
2013-09-05 21:50:05 +04:30
parent 458497747b
commit 9e54abaf22
5 changed files with 34 additions and 24 deletions

View File

@@ -668,7 +668,7 @@ def follow_call_list(call_list, follow_array=False):
result.append(call)
# The string tokens are just operations (+, -, etc.)
elif not isinstance(call, (str, unicode)):
if str(call.name) == 'if':
if isinstance(call, pr.Call) and str(call.name) == 'if':
# Ternary operators.
while True:
try: