summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/queues.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-05-16 19:39:39 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2016-05-16 19:39:39 (GMT)
commit8ace2c66d35cf4cbb2d4a6383e33c0bb96448ecb (patch)
treea4d780ee11c4d8732b927c8271eb5427428fb39c /Lib/asyncio/queues.py
parent7c3ac2d1f82ed44a90de34d5bc6424c64b19ce68 (diff)
parent7661db622892c9731c502ccdd7af130cbfd23f5c (diff)
downloadcpython-8ace2c66d35cf4cbb2d4a6383e33c0bb96448ecb.zip
cpython-8ace2c66d35cf4cbb2d4a6383e33c0bb96448ecb.tar.gz
cpython-8ace2c66d35cf4cbb2d4a6383e33c0bb96448ecb.tar.bz2
Merge 3.5 (Issue #27041)
Diffstat (limited to 'Lib/asyncio/queues.py')
-rw-r--r--Lib/asyncio/queues.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py
index e3a1d5e..c453f02 100644
--- a/Lib/asyncio/queues.py
+++ b/Lib/asyncio/queues.py
@@ -128,7 +128,7 @@ class Queue:
This method is a coroutine.
"""
while self.full():
- putter = futures.Future(loop=self._loop)
+ putter = self._loop.create_future()
self._putters.append(putter)
try:
yield from putter
@@ -162,7 +162,7 @@ class Queue:
This method is a coroutine.
"""
while self.empty():
- getter = futures.Future(loop=self._loop)
+ getter = self._loop.create_future()
self._getters.append(getter)
try:
yield from getter