summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/handler
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-02-11 19:25:38 +0100
committermathieui <mathieui@mathieui.net>2018-02-11 19:25:38 +0100
commit979396bb1e2b9f076459e9e086b1656296fd7ae2 (patch)
tree19e88cfd04852cbc59145d22d5743db1de963cd3 /slixmpp/xmlstream/handler
parente1777263873e96d7189b85a3c57197ab6176fae7 (diff)
downloadslixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.tar.gz
slixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.tar.bz2
slixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.tar.xz
slixmpp-979396bb1e2b9f076459e9e086b1656296fd7ae2.zip
asyncio.async has been scheduled for removal for a long time now
move to asyncio.ensure_future
Diffstat (limited to 'slixmpp/xmlstream/handler')
-rw-r--r--slixmpp/xmlstream/handler/coroutine_callback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/handler/coroutine_callback.py b/slixmpp/xmlstream/handler/coroutine_callback.py
index 8ad9572e..1ca4ab0a 100644
--- a/slixmpp/xmlstream/handler/coroutine_callback.py
+++ b/slixmpp/xmlstream/handler/coroutine_callback.py
@@ -78,7 +78,7 @@ class CoroutineCallback(BaseHandler):
:meth:`prerun()`. Defaults to ``False``.
"""
if not self._instream or instream:
- asyncio.async(self._pointer(payload))
+ asyncio.ensure_future(self._pointer(payload))
if self._once:
self._destroy = True
del self._pointer