summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0163.py
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/plugins/xep_0163.py
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/plugins/xep_0163.py')
-rw-r--r--slixmpp/plugins/xep_0163.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0163.py b/slixmpp/plugins/xep_0163.py
index 5832b4ee..047ca5d3 100644
--- a/slixmpp/plugins/xep_0163.py
+++ b/slixmpp/plugins/xep_0163.py
@@ -62,7 +62,7 @@ class XEP_0163(BasePlugin):
for ns in namespace:
self.xmpp['xep_0030'].add_feature('%s+notify' % ns,
jid=jid)
- asyncio.async(self.xmpp['xep_0115'].update_caps(jid))
+ asyncio.ensure_future(self.xmpp['xep_0115'].update_caps(jid))
def remove_interest(self, namespace, jid=None):
"""
@@ -81,7 +81,7 @@ class XEP_0163(BasePlugin):
for ns in namespace:
self.xmpp['xep_0030'].del_feature(jid=jid,
feature='%s+notify' % namespace)
- asyncio.async(self.xmpp['xep_0115'].update_caps(jid))
+ asyncio.ensure_future(self.xmpp['xep_0115'].update_caps(jid))
def publish(self, stanza, node=None, id=None, options=None, ifrom=None,
timeout_callback=None, callback=None, timeout=None):