Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 7c5adac

Browse files
hroncokfxdgear
authored andcommitted
async is a keyword on 3.7 (#47)
Fixes #44
1 parent 9178fdd commit 7c5adac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch_async/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import asyncio
22

3-
ensure_future = getattr(asyncio, 'ensure_future', asyncio.async)
3+
ensure_future = (getattr(asyncio, 'ensure_future', None) or
4+
getattr(asyncio, 'async', None))

0 commit comments

Comments
 (0)