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
This commit is contained in:
Erno Kuvaja 2015-02-25 12:17:24 +00:00
parent 519672f5d5
commit 2d67dfa97a
2 changed files with 4 additions and 0 deletions

View File

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

View File

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