From: zhouhao02 Date: Tue, 26 Mar 2024 10:53:50 +0000 (+0800) Subject: fix run error: xml.etree.ElementTree.Element' object has no attribute getchildren X-Git-Tag: accepted/tools/devbase/tools/20250527.103741~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F308496%2F1;p=tools%2Fgbs.git fix run error: xml.etree.ElementTree.Element' object has no attribute getchildren Change-Id: Ie80616bffd91429d843f8bea63996967c6d6f2f5 Signed-off-by: zhouhao02 --- diff --git a/gitbuildsys/utils.py b/gitbuildsys/utils.py index 4201425..c24dbbc 100644 --- a/gitbuildsys/utils.py +++ b/gitbuildsys/utils.py @@ -624,7 +624,7 @@ class GerritNameMapper(object): lst_node = root.iter("package") for node in lst_node: if "name" in node.attrib: - for child in node.getchildren(): + for child in list(node): if child.tag == 'source': self._pkg2src[node.attrib['name']] = child.text self._src2pkg[child.text] = node.attrib['name']