Replace collections ABC imports with collections.abc

Proprietary

Migrate deprecated abstract base class imports from collections to collections.abc. These imports were deprecated in Python 3.3 and removed in Python 3.10.

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

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
  2. Change import
  3. Change import
  4. Change import
  5. Change import
  6. Change import
  7. Change import
  8. Change import
  9. Change import
  10. Change import
  11. Change import
  12. Change import
  13. Change import
  14. Change import
  15. Change import
  16. Change import
  17. Change import
  18. Change import
  19. Change import
  20. Change import
  21. Change import
  22. Change import
  23. Change import
  24. Change import
  25. Change import