Merge "fix bug:range() is not same in py3.x and py2.x"
This commit is contained in:
commit
9ac0c31608
@ -40,6 +40,7 @@ if os.path.exists(os.path.join(possible_topdir, 'glance', '__init__.py')):
|
||||
sys.path.insert(0, possible_topdir)
|
||||
|
||||
from oslo.config import cfg
|
||||
from six.moves import xrange
|
||||
|
||||
from glance.common import config
|
||||
from glance.openstack.common import units
|
||||
|
@ -38,6 +38,7 @@ try:
|
||||
SENDFILE_SUPPORTED = True
|
||||
except ImportError:
|
||||
SENDFILE_SUPPORTED = False
|
||||
from six.moves import xrange
|
||||
|
||||
from glance.common import auth
|
||||
from glance.common import exception, utils
|
||||
|
@ -21,6 +21,7 @@
|
||||
"""Defines interface for DB access."""
|
||||
|
||||
from oslo.config import cfg
|
||||
from six.moves import xrange
|
||||
import sqlalchemy
|
||||
import sqlalchemy.orm as sa_orm
|
||||
import sqlalchemy.sql as sa_sql
|
||||
|
@ -21,6 +21,8 @@ import httplib2
|
||||
import os
|
||||
import sys
|
||||
|
||||
from six.moves import xrange
|
||||
|
||||
from glance.openstack.common import jsonutils
|
||||
from glance.openstack.common import units
|
||||
from glance.tests import functional
|
||||
|
@ -27,6 +27,7 @@ import sys
|
||||
import time
|
||||
|
||||
import httplib2
|
||||
from six.moves import xrange
|
||||
|
||||
from glance.openstack.common import jsonutils
|
||||
from glance.openstack.common import units
|
||||
|
@ -18,6 +18,7 @@ import sys
|
||||
import time
|
||||
|
||||
import httplib2
|
||||
from six.moves import xrange
|
||||
import swiftclient
|
||||
|
||||
from glance.common import crypt
|
||||
|
@ -24,6 +24,8 @@ import httplib2
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
from six.moves import xrange
|
||||
|
||||
from glance.openstack.common import jsonutils
|
||||
from glance.openstack.common import units
|
||||
from glance.tests import functional
|
||||
|
@ -13,6 +13,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from six.moves import xrange
|
||||
|
||||
from glance.api import policy
|
||||
from glance.common import exception
|
||||
from glance.common import property_utils
|
||||
|
@ -15,6 +15,7 @@
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
from six.moves import xrange
|
||||
|
||||
from glance.domain import proxy
|
||||
import glance.tests.utils as test_utils
|
||||
|
@ -13,6 +13,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from six.moves import xrange
|
||||
import stubout
|
||||
|
||||
from glance.common import exception
|
||||
|
@ -22,6 +22,7 @@ import tempfile
|
||||
import time
|
||||
|
||||
import fixtures
|
||||
from six.moves import xrange
|
||||
import stubout
|
||||
|
||||
from glance.common import exception
|
||||
|
@ -35,6 +35,7 @@ import uuid
|
||||
|
||||
from migrate.versioning.repository import Repository
|
||||
from oslo.config import cfg
|
||||
from six.moves import xrange
|
||||
import sqlalchemy
|
||||
|
||||
from glance.common import crypt
|
||||
|
Loading…
Reference in New Issue
Block a user