Replace array.tostring() with array.tobytes()
Recipe ID
org.openrewrite.python.migrate.ReplaceArrayTostringArtifactopenrewrite-migrate-pythonReplace tostring() with tobytes() on array objects. The tostring() method was deprecated in Python 3.2 and removed in 3.14.
Single recipepythonarraymigration3.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.ReplaceArrayTostringIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python