From 3a9b45e4f279c430242f8d6f3ee7c9506ba0d208 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 20 Sep 2016 16:45:29 +0900 Subject: ElementBase: Remove deprecated find() and findall() methods. --- slixmpp/plugins/xep_0030/stanza/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slixmpp/plugins/xep_0030/stanza/items.py') diff --git a/slixmpp/plugins/xep_0030/stanza/items.py b/slixmpp/plugins/xep_0030/stanza/items.py index 0e238492..314ab9b3 100644 --- a/slixmpp/plugins/xep_0030/stanza/items.py +++ b/slixmpp/plugins/xep_0030/stanza/items.py @@ -95,7 +95,7 @@ class DiscoItems(ElementBase): node -- Optional extra identifying information. """ if (jid, node) in self._items: - for item_xml in self.findall('{%s}item' % self.namespace): + for item_xml in self.xml.findall('{%s}item' % self.namespace): item = (item_xml.attrib['jid'], item_xml.attrib.get('node', None)) if item == (jid, node): -- cgit v1.2.3