asyncio.async has been scheduled for removal for a long time now
move to asyncio.ensure_future
This commit is contained in:
@@ -215,7 +215,7 @@ class XEP_0065(BasePlugin):
|
||||
self.xmpp.event('socks5_stream', conn)
|
||||
self.xmpp.event('stream:%s:%s' % (sid, requester), conn)
|
||||
|
||||
asyncio.async(gather(proxy_futures, iq, streamhosts))
|
||||
asyncio.ensure_future(gather(proxy_futures, iq, streamhosts))
|
||||
|
||||
def activate(self, proxy, sid, target, ifrom=None, timeout=None, callback=None):
|
||||
"""Activate the socks5 session that has been negotiated."""
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user