Replace array.fromstring() with array.frombytes()
Recipe ID
org.openrewrite.python.migrate.ReplaceArrayFromstringArtifactopenrewrite-migrate-pythonReplace fromstring() with frombytes() on array objects. The fromstring() 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.ReplaceArrayFromstringIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python