diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-09-20 16:45:29 +0900 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-09-20 16:45:29 +0900 |
commit | 3a9b45e4f279c430242f8d6f3ee7c9506ba0d208 (patch) | |
tree | 205a4d6e95af1a102facd9ddd42db887bffe1399 /slixmpp/plugins/xep_0198/stanza.py | |
parent | b8e091233e152572786080f21cdc8d1b844912ed (diff) | |
download | slixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.tar.gz slixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.tar.bz2 slixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.tar.xz slixmpp-3a9b45e4f279c430242f8d6f3ee7c9506ba0d208.zip |
ElementBase: Remove deprecated find() and findall() methods.disco
Diffstat (limited to 'slixmpp/plugins/xep_0198/stanza.py')
-rw-r--r-- | slixmpp/plugins/xep_0198/stanza.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0198/stanza.py b/slixmpp/plugins/xep_0198/stanza.py index b1c4c010..5b13293b 100644 --- a/slixmpp/plugins/xep_0198/stanza.py +++ b/slixmpp/plugins/xep_0198/stanza.py @@ -99,7 +99,7 @@ class StreamManagement(ElementBase): interfaces = set(['required', 'optional']) def get_required(self): - return self.find('{%s}required' % self.namespace) is not None + return self.xml.find('{%s}required' % self.namespace) is not None def set_required(self, val): self.del_required() @@ -110,7 +110,7 @@ class StreamManagement(ElementBase): self._del_sub('required') def get_optional(self): - return self.find('{%s}optional' % self.namespace) is not None + return self.xml.find('{%s}optional' % self.namespace) is not None def set_optional(self, val): self.del_optional() |