ElementBase: Remove deprecated find() and findall() methods.

This commit is contained in:
Emmanuel Gil Peyrot
2016-09-20 16:45:29 +09:00
parent b8e091233e
commit 3a9b45e4f2
12 changed files with 46 additions and 75 deletions

View File

@@ -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)