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:
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
import fixtures
|
import fixtures
|
||||||
|
|
||||||
from openstack.common.lockutils import lock
|
from openstack.common import lockutils
|
||||||
|
|
||||||
|
|
||||||
class LockFixture(fixtures.Fixture):
|
class LockFixture(fixtures.Fixture):
|
||||||
@@ -43,7 +43,7 @@ class LockFixture(fixtures.Fixture):
|
|||||||
test method exits. (either by completing or raising an exception)
|
test method exits. (either by completing or raising an exception)
|
||||||
"""
|
"""
|
||||||
def __init__(self, name, lock_file_prefix=None):
|
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):
|
def setUp(self):
|
||||||
super(LockFixture, self).setUp()
|
super(LockFixture, self).setUp()
|
||||||
|
|||||||
Reference in New Issue
Block a user