cleanup
This commit is contained in:
parent
a2e37e3389
commit
edff78dbef
1 changed files with 2 additions and 4 deletions
|
@ -167,12 +167,10 @@ class CatalogItemList:
|
||||||
return len(self.__list)
|
return len(self.__list)
|
||||||
|
|
||||||
def __getitem__(self, index):
|
def __getitem__(self, index):
|
||||||
|
if self.__list == None:
|
||||||
|
self.__decodeList()
|
||||||
if isinstance(index, slice):
|
if isinstance(index, slice):
|
||||||
if self.__list == None:
|
|
||||||
self.__decodeList()
|
|
||||||
return CatalogItemList(self.__list[index.start:index.stop], store=self.store)
|
return CatalogItemList(self.__list[index.start:index.stop], store=self.store)
|
||||||
if self.__list == None:
|
|
||||||
self.__decodeList()
|
|
||||||
return self.__list[index]
|
return self.__list[index]
|
||||||
|
|
||||||
def __setitem__(self, index, item):
|
def __setitem__(self, index, item):
|
||||||
|
|
Loading…
Reference in a new issue