1
0
forked from VimPlug/jedi

remove close_brackets - not needed anymore

This commit is contained in:
David Halter
2013-02-08 02:43:05 +01:00
parent 5737e3ad1d
commit d82b8d5e19
2 changed files with 4 additions and 14 deletions

View File

@@ -767,11 +767,11 @@ class Array(use_metaclass(cache.CachedMetaClass, pr.Base)):
""" Get the types of a specific index or all, if not given """
# array slicing
if index_call_list is not None:
if index_call_list and [x for x in index_call_list if ':' in x]:
print index_call_list
if index_call_list and [x for x in index_call_list if ':' in x.token_list]:
return [self]
index_possibilities = list(evaluate.follow_call_list(
index_call_list))
index_possibilities = [evaluate.follow_statement(i) for i in index_call_list]
if len(index_possibilities) == 1:
# This is indexing only one element, with a fixed index number,
# otherwise it just ignores the index (e.g. [1+1]).