diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-20 09:37:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-20 09:37:27 (GMT) |
commit | da492a8c39f8d7509de5f3f14d0b957a32fc66ea (patch) | |
tree | b9bc28caf2d509928deb1a2c23f186f138388aaf /Lib/asyncio/tasks.py | |
parent | 2c7203c6f5464e2bcb3d7e11acf714a29a5b0187 (diff) | |
download | cpython-da492a8c39f8d7509de5f3f14d0b957a32fc66ea.zip cpython-da492a8c39f8d7509de5f3f14d0b957a32fc66ea.tar.gz cpython-da492a8c39f8d7509de5f3f14d0b957a32fc66ea.tar.bz2 |
asyncio: remove unused imports and unused variables noticed by pyflakes
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r-- | Lib/asyncio/tasks.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index cf7b540..19fa654 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -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) |