From e7872aaa29258fb5c5abdfe441f0f9fab33f307c 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 22:47:04 +0100 Subject: [PATCH] xep_0030: Use self directly as we're already in disco 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py index daeee879..d06c5c51 100644 --- a/slixmpp/plugins/xep_0030/disco.py +++ b/slixmpp/plugins/xep_0030/disco.py @@ -303,13 +303,13 @@ class XEP_0030(BasePlugin): domain = self.xmpp.boundjid.domain if domain not in self.domain_infos: - infos = [self.xmpp['xep_0030'].get_info( + infos = [self.get_info( domain, timeout=timeout)] - iq_items = await self.xmpp['xep_0030'].get_items( + iq_items = await self.get_items( domain, timeout=timeout) items = iq_items['disco_items']['items'] infos += [ - self.xmpp['xep_0030'].get_info(item[0], timeout=timeout) + self.get_info(item[0], timeout=timeout) for item in items] info_futures, _ = await asyncio.wait(infos, timeout=timeout)