Use loop.create_future instead asyncio.Future

This commit is contained in:
Lonami Exo
2018-08-21 12:22:06 +02:00
parent d3a6822fc9
commit fbc46bd388
4 changed files with 5 additions and 5 deletions

View File

@@ -187,6 +187,6 @@ class InlineQuery(EventBuilder):
if inspect.isawaitable(obj):
return obj
f = asyncio.Future(loop=loop)
f = loop.create_future()
f.set_result(obj)
return f