← All recipes
Moderne licensed

Replace configparser.SafeConfigParser with ConfigParser

Recipe IDorg.openrewrite.python.migrate.ReplaceConfigparserSafeConfigParserArtifactopenrewrite-migrate-python

The configparser.SafeConfigParser class was deprecated in Python 3.2 and removed in Python 3.12. Replace with configparser.ConfigParser.

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

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

mod config recipes pip install openrewrite-migrate-python