Fix violations of H302:import only modules

Comment '# noqa' was missed in some files, led to pep8 warning.
And some modules imported non-module. This patch fixes them.
This is output of violation:
http://logs.openstack.org/77/60977/1/check/gate-oslo-incubator-pep8/4a00515/

Change-Id: Id79bca9820853ecd9f0660a855d7bb2fe42ec806
This commit is contained in:
Chang Bo Guo 2013-12-09 19:07:13 -08:00
parent 16af7f1063
commit d1e2793506
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ from six import moves
import sqlalchemy
import sqlalchemy.exc
from openstack.common.gettextutils import _
from openstack.common.gettextutils import _ # noqa
from openstack.common import log as logging
from openstack.common.py3kcompat import urlutils
from openstack.common import test

View File

@ -14,7 +14,7 @@
# under the License.
import abc
from functools import wraps
import functools
import os
import fixtures
@ -78,7 +78,7 @@ def backend_specific(*dialects):
::dialects: list of dialects names under which the test will be launched.
"""
def wrap(f):
@wraps(f)
@functools.wraps(f)
def ins_wrap(self):
if not set(dialects).issubset(ALLOWED_DIALECTS):
raise ValueError(