Use range() from six.moves
To improve consistency, use range() from six.moves TrivialFix Change-Id: I3bb67b2bb5bedbc5b46f70d7eeeca7f8b7872250
This commit is contained in:
parent
9f74f50969
commit
7575ac4a49
@ -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']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user