← All recipes
Moderne licensed

Replace ConfigParser.readfp() with read_file()

Recipe IDorg.openrewrite.python.migrate.ReplaceConfigparserReadfpArtifactopenrewrite-migrate-python

The ConfigParser.readfp() method was deprecated in Python 3.2 and removed in Python 3.13. Replace with read_file().

Single recipeProprietary

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.ReplaceConfigparserReadfp

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python