Find deprecated locale.getdefaultlocale() usage
Recipe ID
org.openrewrite.python.migrate.FindLocaleGetdefaultlocaleArtifactopenrewrite-migrate-pythonlocale.getdefaultlocale() was deprecated in Python 3.11. Use locale.setlocale(), locale.getlocale(), or locale.getpreferredencoding(False) instead.
Single recipepythonmigration3.11localeProprietary
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.FindLocaleGetdefaultlocaleIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python