From b155f21610ddc36a9533db1dfba37aff8d2a35e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Tue, 22 Jan 2008 13:50:04 +0200 Subject: [PATCH] Resolve small FIXME in SubRange --- debug-viewer/GstDebugViewer/GUI.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/debug-viewer/GstDebugViewer/GUI.py b/debug-viewer/GstDebugViewer/GUI.py index c919c6961f..1dc5836fc0 100644 --- a/debug-viewer/GstDebugViewer/GUI.py +++ b/debug-viewer/GstDebugViewer/GUI.py @@ -697,12 +697,9 @@ class SubRange (object): def __iter__ (self): - # FIXME: Use itertools, should be faster! l = self.l - i = self.start - while i < self.stop: + for i in xrange (self.start, self.stop): yield l[i] - i += 1 class RangeFilteredLogModel (FilteredLogModelBase):