Merge "fix bug:range() is not same in py3.x and py2.x"

This commit is contained in:
Jenkins 2014-01-24 10:29:37 +00:00 committed by Gerrit Code Review
commit 9ac0c31608
12 changed files with 15 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -18,6 +18,7 @@ import sys
import time
import httplib2
from six.moves import xrange
import swiftclient
from glance.common import crypt

View File

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

View File

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

View File

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

View File

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

View File

@ -22,6 +22,7 @@ import tempfile
import time
import fixtures
from six.moves import xrange
import stubout
from glance.common import exception

View File

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