summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/queues.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2019-09-11 08:20:24 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-11 08:20:24 (GMT)
commit7264e92b718d307cc499b2f10eab7644b00f0499 (patch)
tree7c1d18de546bd8373eeb899b8cf3824874a30dfc /Lib/asyncio/queues.py
parentefd5741ae953e50a6654e04cf731da86a1307296 (diff)
downloadcpython-7264e92b718d307cc499b2f10eab7644b00f0499.zip
cpython-7264e92b718d307cc499b2f10eab7644b00f0499.tar.gz
cpython-7264e92b718d307cc499b2f10eab7644b00f0499.tar.bz2
bpo-36373: Fix deprecation warnings (GH-15889)
https://bugs.python.org/issue36373
Diffstat (limited to 'Lib/asyncio/queues.py')
-rw-r--r--Lib/asyncio/queues.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py
index c96b4a0..390ae9a 100644
--- a/Lib/asyncio/queues.py
+++ b/Lib/asyncio/queues.py
@@ -45,7 +45,7 @@ class Queue:
# Futures.
self._putters = collections.deque()
self._unfinished_tasks = 0
- self._finished = locks.Event(loop=self._loop)
+ self._finished = locks.Event(loop=loop)
self._finished.set()
self._init(maxsize)