summaryrefslogtreecommitdiff
path: root/slixmpp/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-12-13 21:31:30 +0100
committermathieui <mathieui@mathieui.net>2021-12-13 21:31:46 +0100
commit799a6a07a98d708d0645fad0343177526128974c (patch)
tree9c52d1becd4913e2f28ef9d4f267eacdd9186084 /slixmpp/plugins
parentbe6dde17f16e85b50361a3db243e9b2e40b2cb5d (diff)
downloadslixmpp-799a6a07a98d708d0645fad0343177526128974c.tar.gz
slixmpp-799a6a07a98d708d0645fad0343177526128974c.tar.bz2
slixmpp-799a6a07a98d708d0645fad0343177526128974c.tar.xz
slixmpp-799a6a07a98d708d0645fad0343177526128974c.zip
fix: remove loop parameter when deprecated (3.10)
Diffstat (limited to 'slixmpp/plugins')
-rw-r--r--slixmpp/plugins/xep_0030/disco.py1
-rw-r--r--slixmpp/plugins/xep_0047/stream.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py
index 0fa09927..37d453aa 100644
--- a/slixmpp/plugins/xep_0030/disco.py
+++ b/slixmpp/plugins/xep_0030/disco.py
@@ -326,7 +326,6 @@ class XEP_0030(BasePlugin):
info_futures, _ = await asyncio.wait(
infos,
timeout=timeout,
- loop=self.xmpp.loop
)
self.domain_infos[domain] = [
diff --git a/slixmpp/plugins/xep_0047/stream.py b/slixmpp/plugins/xep_0047/stream.py
index f020ea68..0cda5dd9 100644
--- a/slixmpp/plugins/xep_0047/stream.py
+++ b/slixmpp/plugins/xep_0047/stream.py
@@ -115,7 +115,7 @@ class IBBytestream(object):
self.xmpp.add_event_handler('ibb_stream_end', on_close)
self.xmpp.add_event_handler('ibb_stream_data', on_data)
try:
- await asyncio.wait_for(end_future, timeout, loop=self.xmpp.loop)
+ await asyncio.wait_for(end_future, timeout)
except asyncio.TimeoutError:
raise IqTimeout(result)
finally: