asyncio: remove unused imports and unused variables noticed by pyflakes

This commit is contained in:
Victor Stinner 2014-02-20 10:37:27 +01:00
parent 6f24d83ac6
commit b4c9388947
7 changed files with 2 additions and 11 deletions

View file

@ -7,7 +7,6 @@ __all__ = ['coroutine', 'Task',
'gather', 'shield',
]
import collections
import concurrent.futures
import functools
import inspect
@ -486,7 +485,6 @@ def as_completed(fs, *, loop=None, timeout=None):
if isinstance(fs, futures.Future) or iscoroutine(fs):
raise TypeError("expect a list of futures, not %s" % type(fs).__name__)
loop = loop if loop is not None else events.get_event_loop()
deadline = None if timeout is None else loop.time() + timeout
todo = {async(f, loop=loop) for f in set(fs)}
from .queues import Queue # Import here to avoid circular import problem.
done = Queue(loop=loop)