Use range() from six.moves

To improve consistency, use range() from six.moves

TrivialFix
Change-Id: I3bb67b2bb5bedbc5b46f70d7eeeca7f8b7872250
This commit is contained in:
Wanlong Gao 2016-01-05 19:57:15 +08:00
parent 9f74f50969
commit 7575ac4a49

View File

@ -134,7 +134,7 @@ class WorkerThread(Thread):
while True:
try:
image = self.queue.get()
for _ in range(self.conf.retries + 1):
for _ in six.moves.range(self.conf.retries + 1):
self.builder(image)
if image['status'] in ['built', 'unmatched',
'parent_error']: