Find deprecated urllib.parse.to_bytes() usage
Recipe ID
org.openrewrite.python.migrate.FindUrllibParseToBytesArtifactopenrewrite-migrate-pythonFind usage of urllib.parse.to_bytes() which was deprecated in Python 3.8 and removed in 3.14. Use str.encode() directly.
Single recipepythonurllibmigration3.14Proprietary
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.FindUrllibParseToBytesIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python