summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/windows_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-11 18:48:38 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-11 18:48:38 (GMT)
commit59eb9a4da504315345b5b0d8fb8eebddc22ccb92 (patch)
treed86de5b0adb841e211f37adbe00ea8f9b25b343f /Lib/asyncio/windows_events.py
parent740169cd24fc108913e4480e98e608f0517a7b8a (diff)
downloadcpython-59eb9a4da504315345b5b0d8fb8eebddc22ccb92.zip
cpython-59eb9a4da504315345b5b0d8fb8eebddc22ccb92.tar.gz
cpython-59eb9a4da504315345b5b0d8fb8eebddc22ccb92.tar.bz2
asyncio: async() function is deprecated in favour of ensure_future().
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r--Lib/asyncio/windows_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py
index f311e46..922594f 100644
--- a/Lib/asyncio/windows_events.py
+++ b/Lib/asyncio/windows_events.py
@@ -488,7 +488,7 @@ class IocpProactor:
future = self._register(ov, listener, finish_accept)
coro = accept_coro(future, conn)
- tasks.async(coro, loop=self._loop)
+ tasks.ensure_future(coro, loop=self._loop)
return future
def connect(self, conn, address):