← All recipes
Moderne licensed

Replace array.fromstring() with array.frombytes()

Recipe IDorg.openrewrite.python.migrate.ReplaceArrayFromstringArtifactopenrewrite-migrate-python

Replace 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.ReplaceArrayFromstring

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

mod config recipes pip install openrewrite-migrate-python