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:
parent
b5b7fc9a98
commit
7c55ce4a5a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user