← All recipes
Moderne licensed

Replace locale.resetlocale() with locale.setlocale(LC_ALL, '')

Recipe IDorg.openrewrite.python.migrate.ReplaceLocaleResetlocaleArtifactopenrewrite-migrate-python

The locale.resetlocale() function was deprecated in Python 3.11 and removed in Python 3.13. Replace with locale.setlocale(locale.LC_ALL, '').

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

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

mod config recipes pip install openrewrite-migrate-python