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/features | |
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/features')
-rw-r--r-- | slixmpp/features/feature_mechanisms/stanza/mechanisms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/features/feature_mechanisms/stanza/mechanisms.py b/slixmpp/features/feature_mechanisms/stanza/mechanisms.py index 4437e155..064b8d1f 100644 --- a/slixmpp/features/feature_mechanisms/stanza/mechanisms.py +++ b/slixmpp/features/feature_mechanisms/stanza/mechanisms.py @@ -29,7 +29,7 @@ class Mechanisms(ElementBase): """ """ results = [] - mechs = self.findall('{%s}mechanism' % self.namespace) + mechs = self.xml.findall('{%s}mechanism' % self.namespace) if mechs: for mech in mechs: results.append(mech.text) @@ -47,7 +47,7 @@ class Mechanisms(ElementBase): def del_mechanisms(self): """ """ - mechs = self.findall('{%s}mechanism' % self.namespace) + mechs = self.xml.findall('{%s}mechanism' % self.namespace) if mechs: for mech in mechs: self.xml.remove(mech) |