Commit 97f2b994 by Tom Christie

Don't use deprecated xml style

parent 2c634c0e
...@@ -149,7 +149,7 @@ class XMLParser(BaseParser): ...@@ -149,7 +149,7 @@ class XMLParser(BaseParser):
convert the xml `element` into the corresponding python object convert the xml `element` into the corresponding python object
""" """
children = element.getchildren() children = list(element)
if len(children) == 0: if len(children) == 0:
return self._type_convert(element.text) return self._type_convert(element.text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment