Clean imports in code

This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: Ib7f8e7e62af62ff768c1b1f065aca0a4c7db75c4
This commit is contained in:
Cao Xuan Hoang 2016-09-23 15:28:59 +07:00
parent 8c7067e839
commit 9d4c26e73f
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import six
from ceilometermiddleware import swift
from ceilometermiddleware.tests import base as tests_base
from threading import Event
import threading
class FakeApp(object):
@ -90,7 +90,7 @@ class TestSwift(tests_base.TestCase):
self.assertEqual('get', data[2]['target']['action'])
def test_get_background(self):
notified = Event()
notified = threading.Event()
app = swift.Swift(FakeApp(),
{"nonblocking_notify": "True",
"send_queue_size": "1"})