Replace tarfile.filemode with stat.filemode
Recipe ID
org.openrewrite.python.migrate.ReplaceTarfileFilemodeArtifactopenrewrite-migrate-pythontarfile.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.ReplaceTarfileFilemodeIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python