minor fix

This commit is contained in:
Miroslav Stampar 2012-06-14 12:46:32 +00:00
parent 19c0efec59
commit 1204eb00b2

View File

@ -69,7 +69,7 @@ class BigArray(list):
self.chunks[self.cache.index] = filename
if not (self.cache and self.cache.index == index):
with open(self.chunks[index], "rb") as fp:
self.cache = (index, pickle.load(fp), False)
self.cache = Cache(index, pickle.load(fp), False)
def __getitem__(self, y):
index = y / BIGARRAY_CHUNK_LENGTH