Fix minor python3 incompatibility
We were using xrange in taskflow.utils.misc.ExponentialBackoff. Change-Id: Ia56293607d2c08cf1facbceb5c90e38d046bac22
This commit is contained in:
@@ -155,7 +155,7 @@ class ExponentialBackoff(object):
|
||||
def __iter__(self):
|
||||
if self.attempts <= 0:
|
||||
raise StopIteration()
|
||||
for i in xrange(0, self.attempts):
|
||||
for i in six.moves.range(0, self.attempts):
|
||||
yield self.exponent ** i
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user