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: I542fcb2a762cf4b34c30fc796854c6fcf305d798
This commit is contained in:
Erno Kuvaja 2015-02-25 12:12:43 +00:00
parent b5b7fc9a98
commit 7c55ce4a5a
4 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,8 @@ from oslo.vmware import constants
from oslo_config import cfg
from oslo_utils import excutils
from oslo_utils import units
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
from six.moves import range
import six.moves.urllib.parse as urlparse
import glance_store

View File

@ -32,6 +32,8 @@ import httplib2
import logging
from oslo.serialization import jsonutils
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
from six.moves import range
import six.moves.urllib.parse as urlparse
from glance_store import exceptions

View File

@ -28,6 +28,8 @@ import uuid
import fixtures
from oslo_utils import units
import six
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
from six.moves import range
from glance_store._drivers.filesystem import ChunkedFile
from glance_store._drivers.filesystem import Store

View File

@ -28,6 +28,8 @@ from oslo_config import cfg
from oslo_utils import units
from oslotest import moxstubout
import six
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
from six.moves import range
import StringIO
import swiftclient