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_0059/stanza.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slixmpp/plugins/xep_0059/stanza.py') diff --git a/slixmpp/plugins/xep_0059/stanza.py b/slixmpp/plugins/xep_0059/stanza.py index e2701af4..3843bc85 100644 --- a/slixmpp/plugins/xep_0059/stanza.py +++ b/slixmpp/plugins/xep_0059/stanza.py @@ -70,7 +70,7 @@ class Set(ElementBase): 'count', 'index', 'last', 'max')) def set_first_index(self, val): - fi = self.find("{%s}first" % (self.namespace)) + fi = self.xml.find("{%s}first" % (self.namespace)) if fi is not None: if val: fi.attrib['index'] = val @@ -82,7 +82,7 @@ class Set(ElementBase): self.xml.append(fi) def get_first_index(self): - fi = self.find("{%s}first" % (self.namespace)) + fi = self.xml.find("{%s}first" % (self.namespace)) if fi is not None: return fi.attrib.get('index', '') -- cgit v1.2.3