Replace Element.getiterator() with Element.iter()
Recipe ID
org.openrewrite.python.migrate.ReplaceElementGetiteratorArtifactopenrewrite-migrate-pythonReplace getiterator() with iter() on XML Element objects. The getiterator() method was deprecated in Python 3.9.
Single recipepythonxmlmigration3.9Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.python.migrate.ReplaceElementGetiteratorIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python