1
0
forked from VimPlug/jedi

fixed bugs for os.path.join().

This commit is contained in:
David Halter
2012-10-01 00:25:14 +02:00
parent 1009a0b376
commit 61f465a7d6
2 changed files with 10 additions and 4 deletions
+5 -3
View File
@@ -669,8 +669,9 @@ class Execution(Executable):
elif var_arg[0] == '*':
arrays = follow_call_list([var_arg[1:]])
for array in arrays:
for field in array.get_contents():
yield None, field
if hasattr(array, 'get_contents'):
for field in array.get_contents():
yield None, field
# **kwargs
elif var_arg[0] == '**':
arrays = follow_call_list([var_arg[1:]])
@@ -1476,7 +1477,8 @@ def follow_path(path, scope, position=None):
if isinstance(current, parsing.Array):
# This must be an execution, either () or [].
if current.type == parsing.Array.LIST:
result = scope.get_index_types(current)
if hasattr(scope, 'get_index_types'):
result = scope.get_index_types(current)
elif current.type not in [parsing.Array.DICT]:
# Scope must be a class or func - make an instance or execution.
debug.dbg('exe', scope)