summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2020-11-24 18:08:54 (GMT)
committerGitHub <noreply@github.com>2020-11-24 18:08:54 (GMT)
commit0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1 (patch)
tree89a37fba7519bd02dca2192e788bf8afe50aecdd /Lib/asyncio/tasks.py
parentb0b428510cfd604a8eef1f245f039331e671ea4a (diff)
downloadcpython-0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1.zip
cpython-0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1.tar.gz
cpython-0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1.tar.bz2
bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r--Lib/asyncio/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index f486b67..03d8451 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -578,7 +578,7 @@ def as_completed(fs, *, loop=None, timeout=None):
raise TypeError(f"expect an iterable of futures, not {type(fs).__name__}")
from .queues import Queue # Import here to avoid circular import problem.
- done = Queue(loop=loop)
+ done = Queue()
if loop is None:
loop = events.get_event_loop()