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_0085/stanza.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slixmpp/plugins/xep_0085/stanza.py') diff --git a/slixmpp/plugins/xep_0085/stanza.py b/slixmpp/plugins/xep_0085/stanza.py index d1a5b151..de1bc645 100644 --- a/slixmpp/plugins/xep_0085/stanza.py +++ b/slixmpp/plugins/xep_0085/stanza.py @@ -50,7 +50,7 @@ class ChatState(ElementBase): def get_chat_state(self): parent = self.parent() for state in self.states: - state_xml = parent.find('{%s}%s' % (self.namespace, state)) + state_xml = parent.xml.find('{%s}%s' % (self.namespace, state)) if state_xml is not None: self.xml = state_xml return state @@ -68,7 +68,7 @@ class ChatState(ElementBase): def del_chat_state(self): parent = self.parent() for state in self.states: - state_xml = parent.find('{%s}%s' % (self.namespace, state)) + state_xml = parent.xml.find('{%s}%s' % (self.namespace, state)) if state_xml is not None: self.xml = ET.Element('') parent.xml.remove(state_xml) -- cgit v1.2.3