Remove unused imports
Fixes bug #1036666 Removed unused imports found by: find . -type f -name "*py" -exec pylint -r n {} \; | grep -E "Unused imp|^\*" Change-Id: Iad69354dd47c2a0dfa3a23a95c1a23eb66773b8d
This commit is contained in:
parent
3b9379c6fb
commit
6e5ef61f8f
@ -15,19 +15,14 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import functools
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import urlparse
|
import urlparse
|
||||||
|
|
||||||
import webob
|
import webob
|
||||||
from xml.dom import minidom
|
|
||||||
|
|
||||||
from cinder.api.openstack import wsgi
|
|
||||||
from cinder.api.openstack import xmlutil
|
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder import quota
|
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -20,7 +20,6 @@ from cinder.api.openstack import extensions
|
|||||||
from cinder.api.openstack import wsgi
|
from cinder.api.openstack import wsgi
|
||||||
from cinder.api.openstack import xmlutil
|
from cinder.api.openstack import xmlutil
|
||||||
from cinder import volume
|
from cinder import volume
|
||||||
from cinder import db
|
|
||||||
from cinder import exception
|
from cinder import exception
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import webob
|
import webob
|
||||||
from webob import exc
|
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
|
|
||||||
from cinder.api.openstack import extensions
|
from cinder.api.openstack import extensions
|
||||||
@ -22,7 +21,6 @@ from cinder.api.openstack import xmlutil
|
|||||||
from cinder import volume
|
from cinder import volume
|
||||||
from cinder import exception
|
from cinder import exception
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder import utils
|
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder.openstack.common.rpc import common as rpc_common
|
from cinder.openstack.common.rpc import common as rpc_common
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
import inspect
|
import inspect
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
from xml.parsers import expat
|
from xml.parsers import expat
|
||||||
import math
|
|
||||||
import time
|
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import webob
|
import webob
|
||||||
|
@ -21,7 +21,6 @@ Request Body limiting middleware.
|
|||||||
import webob.dec
|
import webob.dec
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
|
||||||
from cinder import context
|
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder.openstack.common import cfg
|
from cinder.openstack.common import cfg
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
import distutils.version as dist_version
|
import distutils.version as dist_version
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
from cinder.db import migration
|
from cinder.db import migration
|
||||||
from cinder.db.sqlalchemy.session import get_engine
|
from cinder.db.sqlalchemy.session import get_engine
|
||||||
|
@ -31,7 +31,6 @@ from cinder.db.sqlalchemy.session import get_session
|
|||||||
|
|
||||||
from cinder import exception
|
from cinder import exception
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder import utils
|
|
||||||
from cinder.openstack.common import timeutils
|
from cinder.openstack.common import timeutils
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import inspect
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from cinder.openstack.common import cfg
|
from cinder.openstack.common import cfg
|
||||||
|
@ -19,10 +19,8 @@
|
|||||||
|
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from cinder.openstack.common import cfg
|
|
||||||
from cinder.openstack.common.gettextutils import _
|
from cinder.openstack.common.gettextutils import _
|
||||||
from cinder.openstack.common import importutils
|
from cinder.openstack.common import importutils
|
||||||
from cinder.openstack.common import jsonutils
|
from cinder.openstack.common import jsonutils
|
||||||
|
@ -24,8 +24,6 @@ inline callbacks.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import os
|
|
||||||
import shutil
|
|
||||||
import uuid
|
import uuid
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@ -37,7 +35,6 @@ from cinder import flags
|
|||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder.openstack.common import cfg
|
from cinder.openstack.common import cfg
|
||||||
from cinder.openstack.common import timeutils
|
from cinder.openstack.common import timeutils
|
||||||
from cinder import utils
|
|
||||||
from cinder import service
|
from cinder import service
|
||||||
from cinder import tests
|
from cinder import tests
|
||||||
from cinder.tests import fake_flags
|
from cinder.tests import fake_flags
|
||||||
|
@ -73,9 +73,7 @@ reldir = os.path.join(os.path.dirname(__file__), '..', '..')
|
|||||||
absdir = os.path.abspath(reldir)
|
absdir = os.path.abspath(reldir)
|
||||||
sys.path.insert(0, absdir)
|
sys.path.insert(0, absdir)
|
||||||
|
|
||||||
from cinder import flags
|
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder.openstack.common import cfg
|
|
||||||
|
|
||||||
|
|
||||||
class _AnsiColorizer(object):
|
class _AnsiColorizer(object):
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import webob
|
|
||||||
|
|
||||||
|
|
||||||
def compare_links(actual, expected):
|
def compare_links(actual, expected):
|
||||||
"""Compare xml atom links."""
|
"""Compare xml atom links."""
|
||||||
|
@ -19,15 +19,11 @@
|
|||||||
Test suites for 'common' code used throughout the OpenStack HTTP API.
|
Test suites for 'common' code used throughout the OpenStack HTTP API.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from lxml import etree
|
|
||||||
import webob
|
import webob
|
||||||
import webob.exc
|
import webob.exc
|
||||||
import xml.dom.minidom as minidom
|
|
||||||
|
|
||||||
from cinder import exception
|
|
||||||
from cinder import test
|
from cinder import test
|
||||||
from cinder.api.openstack import common
|
from cinder.api.openstack import common
|
||||||
from cinder.api.openstack import xmlutil
|
|
||||||
|
|
||||||
|
|
||||||
NS = "{http://docs.openstack.org/compute/api/v1.1}"
|
NS = "{http://docs.openstack.org/compute/api/v1.1}"
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
import json
|
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
from cinder import exception
|
from cinder import exception
|
||||||
from cinder import test
|
from cinder import test
|
||||||
from cinder import utils
|
|
||||||
from cinder.api.openstack import wsgi
|
from cinder.api.openstack import wsgi
|
||||||
from cinder.tests.api.openstack import fakes
|
from cinder.tests.api.openstack import fakes
|
||||||
import cinder.context
|
|
||||||
|
|
||||||
|
|
||||||
class RequestTest(test.TestCase):
|
class RequestTest(test.TestCase):
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
"""Stubouts, mocks and fixtures for the test suite"""
|
"""Stubouts, mocks and fixtures for the test suite"""
|
||||||
|
|
||||||
from cinder import db
|
from cinder import db
|
||||||
from cinder import exception
|
|
||||||
|
|
||||||
|
|
||||||
class FakeModel(object):
|
class FakeModel(object):
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import httplib
|
import httplib
|
||||||
import urllib
|
|
||||||
import urlparse
|
import urlparse
|
||||||
|
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from cinder.api.openstack.volume import extensions
|
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder.tests.integrated import integrated_helpers
|
from cinder.tests.integrated import integrated_helpers
|
||||||
|
@ -20,7 +20,6 @@ from lxml import etree
|
|||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder.tests.integrated import integrated_helpers
|
from cinder.tests.integrated import integrated_helpers
|
||||||
from cinder.api.openstack import common
|
from cinder.api.openstack import common
|
||||||
from cinder.api.openstack import xmlutil
|
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -16,9 +16,7 @@
|
|||||||
Fakes For Scheduler tests.
|
Fakes For Scheduler tests.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import mox
|
|
||||||
|
|
||||||
from cinder import db
|
|
||||||
from cinder.scheduler import host_manager
|
from cinder.scheduler import host_manager
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,21 +19,15 @@
|
|||||||
Tests For Scheduler
|
Tests For Scheduler
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import datetime
|
|
||||||
import json
|
|
||||||
|
|
||||||
from cinder import context
|
from cinder import context
|
||||||
from cinder import db
|
from cinder import db
|
||||||
from cinder import exception
|
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder.openstack.common.notifier import api as notifier
|
|
||||||
from cinder.openstack.common import rpc
|
from cinder.openstack.common import rpc
|
||||||
from cinder.openstack.common.rpc import common as rpc_common
|
|
||||||
from cinder.openstack.common import timeutils
|
from cinder.openstack.common import timeutils
|
||||||
from cinder.scheduler import driver
|
from cinder.scheduler import driver
|
||||||
from cinder.scheduler import manager
|
from cinder.scheduler import manager
|
||||||
from cinder import test
|
from cinder import test
|
||||||
from cinder.tests.scheduler import fakes
|
|
||||||
from cinder import utils
|
from cinder import utils
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import os
|
|
||||||
import tempfile
|
|
||||||
|
|
||||||
from cinder import flags
|
from cinder import flags
|
||||||
from cinder.openstack.common import cfg
|
from cinder.openstack.common import cfg
|
||||||
|
@ -27,7 +27,6 @@ if possible.
|
|||||||
import ConfigParser
|
import ConfigParser
|
||||||
import commands
|
import commands
|
||||||
import os
|
import os
|
||||||
import unittest
|
|
||||||
import urlparse
|
import urlparse
|
||||||
|
|
||||||
from migrate.versioning import repository
|
from migrate.versioning import repository
|
||||||
|
@ -14,19 +14,12 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import commands
|
|
||||||
import errno
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import select
|
|
||||||
|
|
||||||
from eventlet import greenpool
|
|
||||||
from eventlet import greenthread
|
|
||||||
import lockfile
|
|
||||||
|
|
||||||
from cinder import exception
|
from cinder import exception
|
||||||
from cinder import test
|
from cinder import test
|
||||||
from cinder import utils
|
|
||||||
|
|
||||||
|
|
||||||
class ExceptionTestCase(test.TestCase):
|
class ExceptionTestCase(test.TestCase):
|
||||||
|
@ -24,7 +24,6 @@ from cinder import quota
|
|||||||
from cinder.openstack.common import rpc
|
from cinder.openstack.common import rpc
|
||||||
from cinder import test
|
from cinder import test
|
||||||
from cinder import volume
|
from cinder import volume
|
||||||
from cinder.scheduler import driver as scheduler_driver
|
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
@ -31,7 +31,6 @@ from cinder import exception
|
|||||||
from cinder.openstack.common import excutils
|
from cinder.openstack.common import excutils
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder import test
|
from cinder import test
|
||||||
from cinder import utils
|
|
||||||
from cinder.volume import storwize_svc
|
from cinder.volume import storwize_svc
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from cinder import db
|
|
||||||
from cinder import test
|
from cinder import test
|
||||||
from cinder.tests import utils as test_utils
|
from cinder.tests import utils as test_utils
|
||||||
|
|
||||||
|
@ -19,15 +19,9 @@ import datetime
|
|||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
import socket
|
|
||||||
import shutil
|
|
||||||
import StringIO
|
import StringIO
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
import eventlet
|
|
||||||
from eventlet import greenpool
|
|
||||||
import iso8601
|
|
||||||
import lockfile
|
|
||||||
import mox
|
import mox
|
||||||
|
|
||||||
import cinder
|
import cinder
|
||||||
|
@ -24,7 +24,6 @@ ONTAP 7-mode storage systems with installed iSCSI licenses.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import string
|
|
||||||
|
|
||||||
import suds
|
import suds
|
||||||
from suds import client
|
from suds import client
|
||||||
|
@ -49,7 +49,6 @@ from cinder import flags
|
|||||||
from cinder.openstack.common import cfg
|
from cinder.openstack.common import cfg
|
||||||
from cinder.openstack.common import excutils
|
from cinder.openstack.common import excutils
|
||||||
from cinder.openstack.common import log as logging
|
from cinder.openstack.common import log as logging
|
||||||
from cinder import utils
|
|
||||||
from cinder.volume import san
|
from cinder.volume import san
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user