Skip to content

Commit e5cedff

Browse files
hroncokpquentin
authored andcommitted
async is a keyword on 3.7 (elastic#47)
Fixes elastic#44
1 parent 86b4bb1 commit e5cedff

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)