aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/proactor_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-05-16 15:38:39 -0400
committerYury Selivanov <yselivanov@sprymix.com>2016-05-16 15:38:39 -0400
commit7661db622892c9731c502ccdd7af130cbfd23f5c (patch)
tree3d0d940b0a5a26a1a89e27f6e4969ae612a9cb9b /Lib/asyncio/proactor_events.py
parent7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2 (diff)
downloadcpython-7661db622892c9731c502ccdd7af130cbfd23f5c.tar.gz
cpython-7661db622892c9731c502ccdd7af130cbfd23f5c.zip
Issue #27041: asyncio: Add loop.create_future method
Diffstat (limited to 'Lib/asyncio/proactor_events.py')
-rw-r--r--Lib/asyncio/proactor_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py
index b2ddee40718..eb92458adae 100644
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -443,7 +443,7 @@ class BaseProactorEventLoop(base_events.BaseEventLoop):
try:
base_events._check_resolved_address(sock, address)
except ValueError as err:
- fut = futures.Future(loop=self)
+ fut = self.create_future()
fut.set_exception(err)
return fut
else: