From 7575ac4a4957ca7414a5bc7de3139608ccf3b44e Mon Sep 17 00:00:00 2001 From: Wanlong Gao Date: Tue, 5 Jan 2016 19:57:15 +0800 Subject: [PATCH] Use range() from six.moves To improve consistency, use range() from six.moves TrivialFix Change-Id: I3bb67b2bb5bedbc5b46f70d7eeeca7f8b7872250 --- kolla/cmd/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index 7deb01891d..476a8d2c33 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -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']: