diff options
author | René Stadler <mail@renestadler.de> | 2007-11-21 14:21:38 +0200 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2007-11-21 14:21:38 +0200 |
commit | 026d3689189777f718fbceac6399437c11a5bff0 (patch) | |
tree | dad71641a821d55d4c57048214c96691789de9ed /GstDebugViewer/Data.py | |
parent | 9a1420e7010990207286c456b9b64a6693004fb5 (diff) |
Ditch arrays for offset storage again
Diffstat (limited to 'GstDebugViewer/Data.py')
-rw-r--r-- | GstDebugViewer/Data.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/GstDebugViewer/Data.py b/GstDebugViewer/Data.py index cb27e24..c837e00 100644 --- a/GstDebugViewer/Data.py +++ b/GstDebugViewer/Data.py @@ -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): |