Replace Element.getchildren() with list(element)
ProprietaryReplace getchildren() with list(element) on XML Element objects. Deprecated in Python 3.2 and removed in 3.9. Only fires where the receiver's type resolves to xml.etree.ElementTree.Element or a subclass.
org. openrewrite. python. migrate. ReplaceElementGetchildrenmod run . --recipe= org. openrewrite. python. migrate. ReplaceElementGetchildrenInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.