asyncio: Fix pyflakes warnings: remove unused variables and imports

This commit is contained in:
Victor Stinner 2014-02-26 11:07:42 +01:00
parent 24ba203504
commit f5e37037cc
8 changed files with 12 additions and 26 deletions

View file

@ -830,7 +830,7 @@ class TaskTests(unittest.TestCase):
v = yield from f
self.assertEqual(v, 'a')
res = loop.run_until_complete(asyncio.Task(foo(), loop=loop))
loop.run_until_complete(asyncio.Task(foo(), loop=loop))
def test_as_completed_reverse_wait(self):
@ -964,13 +964,9 @@ class TaskTests(unittest.TestCase):
loop = test_utils.TestLoop(gen)
self.addCleanup(loop.close)
sleepfut = None
@asyncio.coroutine
def sleep(dt):
nonlocal sleepfut
sleepfut = asyncio.sleep(dt, loop=loop)
yield from sleepfut
yield from asyncio.sleep(dt, loop=loop)
@asyncio.coroutine
def doit():