Fix minor python3 incompatibility

We were using xrange in taskflow.utils.misc.ExponentialBackoff.

Change-Id: Ia56293607d2c08cf1facbceb5c90e38d046bac22
This commit is contained in:
Ivan A. Melnikov
2013-12-12 23:53:04 +04:00
parent 96d94bd492
commit 46c6d1e91b

View File

@@ -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):