Replace deprecated gettext l*gettext() functions
Recipe ID
org.openrewrite.python.migrate.ReplaceGettextDeprecationsArtifactopenrewrite-migrate-pythonReplace deprecated gettext functions like lgettext() with their modern equivalents like gettext(). The l*gettext() functions were removed in Python 3.11.
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.ReplaceGettextDeprecationsIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python