← All recipes
Moderne licensed

Replace Thread.isAlive() with Thread.is_alive()

Recipe IDorg.openrewrite.python.migrate.ReplaceThreadIsAliveArtifactopenrewrite-migrate-python

Replace isAlive() method calls with is_alive(). Deprecated in Python 3.1 and removed in 3.9.

Single recipepythonmigrationthreading3.9Proprietary

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

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

mod config recipes pip install openrewrite-migrate-python