Replace tarfile.filemode with stat.filemode

Proprietary

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

org.openrewrite.python.migrate.ReplaceTarfileFilemode
mod run . --recipe=org.openrewrite.python.migrate.ReplaceTarfileFilemode

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change import