From aea4f4416b7bc34b9bd27955cd1ccc99af6b09ad Mon Sep 17 00:00:00 2001 From: RongzeZhu Date: Thu, 16 Aug 2012 22:16:56 +0800 Subject: [PATCH] Remove unused imports Fixes bug #1037592 Change-Id: I3365d028ab67931517d2f94cc4b7e3752fbdb869 --- glance/api/v1/router.py | 1 - glance/tests/unit/base.py | 1 - glance/tests/unit/test_config.py | 1 - glance/tests/unit/test_image_cache.py | 1 - glance/tests/unit/test_misc.py | 4 ---- glance/tests/utils.py | 2 -- 6 files changed, 10 deletions(-) diff --git a/glance/api/v1/router.py b/glance/api/v1/router.py index 4bdd85835a..563177493c 100644 --- a/glance/api/v1/router.py +++ b/glance/api/v1/router.py @@ -15,7 +15,6 @@ # License for the specific language governing permissions and limitations # under the License. -import routes from glance.api.v1 import images from glance.api.v1 import members diff --git a/glance/tests/unit/base.py b/glance/tests/unit/base.py index 6cafab353c..abc0981932 100644 --- a/glance/tests/unit/base.py +++ b/glance/tests/unit/base.py @@ -23,7 +23,6 @@ import stubout from glance.openstack.common import cfg from glance import store -from glance.store import filesystem from glance.store import location from glance.tests import stubs from glance.tests import utils as test_utils diff --git a/glance/tests/unit/test_config.py b/glance/tests/unit/test_config.py index 3bff87420f..ca73f90b20 100644 --- a/glance/tests/unit/test_config.py +++ b/glance/tests/unit/test_config.py @@ -23,7 +23,6 @@ import stubout from glance.api.middleware import context from glance.common import config -from glance.image_cache import pruner from glance.tests import utils as test_utils diff --git a/glance/tests/unit/test_image_cache.py b/glance/tests/unit/test_image_cache.py index 47bd24dd30..7eaac61b63 100644 --- a/glance/tests/unit/test_image_cache.py +++ b/glance/tests/unit/test_image_cache.py @@ -24,7 +24,6 @@ import StringIO import stubout -from glance.common import exception from glance.common import utils from glance import image_cache from glance.tests import utils as test_utils diff --git a/glance/tests/unit/test_misc.py b/glance/tests/unit/test_misc.py index 9d1c8ab63d..b9ca5e4152 100644 --- a/glance/tests/unit/test_misc.py +++ b/glance/tests/unit/test_misc.py @@ -15,14 +15,10 @@ # License for the specific language governing permissions and limitations # under the License. -import commands -import datetime import os -import re from glance.common import crypt from glance.common import utils -from glance.openstack.common import importutils from glance.tests import utils as test_utils diff --git a/glance/tests/utils.py b/glance/tests/utils.py index ad2cb4a40c..a5a9cdb377 100644 --- a/glance/tests/utils.py +++ b/glance/tests/utils.py @@ -27,12 +27,10 @@ import unittest import nose.plugins.skip -from glance.common import config from glance.common import utils from glance.common import wsgi from glance import context from glance.openstack.common import cfg -from glance import store CONF = cfg.CONF