Ditch arrays for offset storage again

This commit is contained in:
René Stadler 2007-11-21 14:21:38 +02:00 committed by Stefan Sauer
parent 3b5745c412
commit e3410d3305

View file

@ -178,16 +178,7 @@ class LineCache (Producer):
self.__file_size = self.__fileobj.tell ()
self.__fileobj.seek (0)
from array import array
offsets = array ("L")
try:
offsets.append (self.__file_size)
except OverflowError:
offsets = []
else:
del offsets[0]
self.offsets = offsets
self.offsets = []
self.levels = [] # FIXME
def start_loading (self):