moved the input of get_index_types to a more typical type system

This commit is contained in:
Dave Halter committed 2014-04-04 12:09:46 +02:00
1 parent 84fde13b84
commit f7e236971b
4 files changed
+27 -28

No files matched your search

+2 -3
View File
@@ -167,10 +167,9 @@ class Instance(use_metaclass(CachedMetaClass, Executable)):
except KeyError:
return False
def get_index_types(self, index=None):
args = [] if index is None else [index]
def get_index_types(self, indexes=[]):
try:
return self.execute_subscope_by_name('__getitem__', args)
return self.execute_subscope_by_name('__getitem__', indexes)
except KeyError:
debug.warning('No __getitem__, cannot access the array.')
return []