From 026d3689189777f718fbceac6399437c11a5bff0 Mon Sep 17 00:00:00 2001 From: René Stadler Date: Wed, 21 Nov 2007 14:21:38 +0200 Subject: Ditch arrays for offset storage again --- GstDebugViewer/Data.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'GstDebugViewer/Data.py') 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): -- cgit v1.2.3