asyncio.ensure_future Python 3.5 (#13141)

This commit is contained in:
Otto Winter authored and GitHub committed 2018-03-12 19:42:08 +01:00
1 parent 9ee123f5ce
commit 890197e407
2 files changed
+2 -14

No files matched your search

+1 -8
View File
@@ -5,14 +5,7 @@ import logging
from asyncio import coroutines
from asyncio.futures import Future
try:
# pylint: disable=ungrouped-imports
from asyncio import ensure_future
except ImportError:
# Python 3.4.3 and earlier has this as async
# pylint: disable=unused-import
from asyncio import async
ensure_future = async
from asyncio import ensure_future
_LOGGER = logging.getLogger(__name__)