{"action":"closed","issue":{"url":"https://api.github.com/repos/aio-libs/aioredis/issues/101","labels_url":"https://api.github.com/repos/aio-libs/aioredis/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/aio-libs/aioredis/issues/101/comments","events_url":"https://api.github.com/repos/aio-libs/aioredis/issues/101/events","html_url":"https://github.com/aio-libs/aioredis/issues/101","id":121870958,"number":101,"title":"asyncio.async Deprecated Warning.","user":{"login":"futursolo","id":11693215,"avatar_url":"https://avatars.githubusercontent.com/u/11693215?v=3","gravatar_id":"","url":"https://api.github.com/users/futursolo","html_url":"https://github.com/futursolo","followers_url":"https://api.github.com/users/futursolo/followers","following_url":"https://api.github.com/users/futursolo/following{/other_user}","gists_url":"https://api.github.com/users/futursolo/gists{/gist_id}","starred_url":"https://api.github.com/users/futursolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futursolo/subscriptions","organizations_url":"https://api.github.com/users/futursolo/orgs","repos_url":"https://api.github.com/users/futursolo/repos","events_url":"https://api.github.com/users/futursolo/events{/privacy}","received_events_url":"https://api.github.com/users/futursolo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-12T18:32:19Z","updated_at":"2015-12-14T22:06:48Z","closed_at":"2015-12-14T22:06:48Z","body":"Under Python 3.5, `asyncio.async` is deprecated. If any codes use `asyncio.async`, a DeprecatedWarning will be printed. \r\n```\r\n/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py:509: DeprecationWarning: asyncio.async() function is deprecated, use ensure_future()\r\n```\r\n\r\nPython 3.5 suggests that `asyncio.async` should be replaced by `asyncio.ensure_future`.\r\n\r\nOne possible solution: \r\n\r\n```python\r\ntry:\r\n    from asyncio import ensure_future as asyncio_ensure_future\r\nexcept ImportError:\r\n    from asyncio import async as asyncio_ensure_future\r\n```\r\n\r\nThen, use `asyncio_ensure_future` to replace all the `asyncio.async` in the codes."}}