Replace xml.etree.cElementTree with xml.etree.ElementTree

Proprietary

xml.etree.cElementTree was deprecated in Python 3.3 and removed in Python 3.9. Import xml.etree.ElementTree instead, which uses the C accelerator itself.

org.openrewrite.python.migrate.ReplaceCElementTree
mod run . --recipe=org.openrewrite.python.migrate.ReplaceCElementTree

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change import