From 9740e93aeb3a8cd1403e7f920bd8ade93c47f9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 30 Jun 2018 23:03:47 +0100 Subject: xep_0030: Pass kwargs down in find_identities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp/plugins/xep_0030/disco.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py index d06c5c51..b89c7258 100644 --- a/slixmpp/plugins/xep_0030/disco.py +++ b/slixmpp/plugins/xep_0030/disco.py @@ -298,18 +298,19 @@ class XEP_0030(BasePlugin): 'cached': cached} return self.api['has_identity'](jid, node, ifrom, data) - async def find_identities(category, type_, domain=None, timeout=None): + async def find_identities(category, type_, domain=None, timeout=None, + **kwargs): if domain is None: domain = self.xmpp.boundjid.domain if domain not in self.domain_infos: infos = [self.get_info( - domain, timeout=timeout)] + domain, timeout=timeout, **kwargs)] iq_items = await self.get_items( - domain, timeout=timeout) + domain, timeout=timeout, **kwargs) items = iq_items['disco_items']['items'] infos += [ - self.get_info(item[0], timeout=timeout) + self.get_info(item[0], timeout=timeout, **kwargs) for item in items] info_futures, _ = await asyncio.wait(infos, timeout=timeout) -- cgit v1.2.3