Skip to content

Commit

Permalink
Merge pull request #208 from andersk/getchildren
Browse files Browse the repository at this point in the history
Fix use of deprecated Element.getchildren, removed in Python 3.9
  • Loading branch information
Mic92 authored Jul 23, 2021
2 parents 662fc7d + 1204a06 commit fc7a32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixpkgs_review/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def parse_packages_xml(stdout: IO[str]) -> List[Package]:
if name not in ["homepage", "description", "position"]:
continue
if elem.attrib["type"] == "strings":
values = (e.attrib["value"] for e in elem.getchildren())
values = (e.attrib["value"] for e in elem)
value = ", ".join(values)
else:
value = elem.attrib["value"]
Expand Down

0 comments on commit fc7a32c

Please sign in to comment.