summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-20 09:37:27 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-20 09:37:27 (GMT)
commitda492a8c39f8d7509de5f3f14d0b957a32fc66ea (patch)
treeb9bc28caf2d509928deb1a2c23f186f138388aaf /Lib/asyncio/tasks.py
parent2c7203c6f5464e2bcb3d7e11acf714a29a5b0187 (diff)
downloadcpython-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.py2
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)