Skip to content

Commit 86fbe99

Browse files
champtarseveas
authored andcommitted
Fix error with python 3.9
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' getchildren() has been removed in python 3.9 Signed-off-by: Etienne Champetier <echampetier@anevia.com>
1 parent 17d7d78 commit 86fbe99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hpilo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def _element_to_dict(self, element):
684684
retval[key.lower()] = self._coerce(val)
685685
if list(element):
686686
fields = []
687-
for child in element.getchildren():
687+
for child in element:
688688
if child.tag == 'FIELD':
689689
fields.append(self._element_to_dict(child))
690690
if fields:

0 commit comments

Comments
 (0)