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 93fdabc8ca
commit f1ba198c9f

View File

@@ -15,7 +15,7 @@
import fixtures
from openstack.common.lockutils import lock
from openstack.common import lockutils
class LockFixture(fixtures.Fixture):
@@ -43,7 +43,7 @@ class LockFixture(fixtures.Fixture):
test method exits. (either by completing or raising an exception)
"""
def __init__(self, name, lock_file_prefix=None):
self.mgr = lock(name, lock_file_prefix, True)
self.mgr = lockutils.lock(name, lock_file_prefix, True)
def setUp(self):
super(LockFixture, self).setUp()