fix length for limiter

This commit is contained in:
Alexey Lavrenuke (load testing) 2013-07-15 21:58:53 +04:00
parent 27628d6ff4
commit bb30f64dd5

View File

@ -44,6 +44,7 @@ class Limiter(object):
def __init__(self, gen, limit):
self.gen = islice(gen, limit)
self.limit = limit
def __len__(self):
return self.limit