← All recipes
Moderne licensed

Find deprecated os.spawn*() usage

Recipe IDorg.openrewrite.python.migrate.FindOsSpawnArtifactopenrewrite-migrate-python

The os.spawn*() family of functions are deprecated. Use subprocess.run() or subprocess.Popen() instead.

Single recipepythonmigrationsubprocessProprietary

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

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

mod config recipes pip install openrewrite-migrate-python