summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0030/stanza/items.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-09-20 16:45:29 +0900
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-09-20 16:45:29 +0900
commit3a9b45e4f279c430242f8d6f3ee7c9506ba0d208 (patch)
tree205a4d6e95af1a102facd9ddd42db887bffe1399 /slixmpp/plugins/xep_0030/stanza/items.py
parentb8e091233e152572786080f21cdc8d1b844912ed (diff)
downloadslixmpp-disco.tar.gz
slixmpp-disco.tar.bz2
slixmpp-disco.tar.xz
slixmpp-disco.zip
ElementBase: Remove deprecated find() and findall() methods.disco
Diffstat (limited to 'slixmpp/plugins/xep_0030/stanza/items.py')
-rw-r--r--slixmpp/plugins/xep_0030/stanza/items.py2
1 files changed, 1 insertions, 1 deletions
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):