From 2d67dfa97a7f3cdedf9e2eb80178fac6160bc811 Mon Sep 17 00:00:00 2001 From: Erno Kuvaja Date: Wed, 25 Feb 2015 12:17:24 +0000 Subject: [PATCH] Unify using six.moves.range rename everywhere Mainly to improve consistency, use range() from six.moves renames across glance. Behaves consistently like py2 xrange() and py3 range(). Change-Id: I7c573a3a9775f454b98d25f2a14f8e9f5f4ac432 --- glanceclient/common/https.py | 2 ++ tests/test_utils.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/glanceclient/common/https.py b/glanceclient/common/https.py index ac140e48..e62ea6e2 100644 --- a/glanceclient/common/https.py +++ b/glanceclient/common/https.py @@ -28,6 +28,8 @@ except ImportError: from oslo_utils import encodeutils import six +# NOTE(jokke): simplified transition to py3, behaves like py2 xrange +from six.moves import range from glanceclient.common import utils diff --git a/tests/test_utils.py b/tests/test_utils.py index a8677c4b..564d7f66 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -16,6 +16,8 @@ import sys import six +# NOTE(jokke): simplified transition to py3, behaves like py2 xrange +from six.moves import range import testtools from glanceclient.common import utils