mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
Resolve small FIXME in SubRange
This commit is contained in:
parent
4356b706f9
commit
b155f21610
1 changed files with 1 additions and 4 deletions
|
@ -697,12 +697,9 @@ class SubRange (object):
|
||||||
|
|
||||||
def __iter__ (self):
|
def __iter__ (self):
|
||||||
|
|
||||||
# FIXME: Use itertools, should be faster!
|
|
||||||
l = self.l
|
l = self.l
|
||||||
i = self.start
|
for i in xrange (self.start, self.stop):
|
||||||
while i < self.stop:
|
|
||||||
yield l[i]
|
yield l[i]
|
||||||
i += 1
|
|
||||||
|
|
||||||
class RangeFilteredLogModel (FilteredLogModelBase):
|
class RangeFilteredLogModel (FilteredLogModelBase):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue