← All recipes
Moderne licensed

Replace tarfile.filemode with stat.filemode

Recipe IDorg.openrewrite.python.migrate.ReplaceTarfileFilemodeArtifactopenrewrite-migrate-python

tarfile.filemode was removed in Python 3.8. Use stat.filemode() instead.

Single recipepythonmigration3.8tarfileProprietary

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

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

mod config recipes pip install openrewrite-migrate-python