Definition
Recipes50
50 recipes
- Upgrade to Python 3.8
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Replace
typing.Callablewithcollections.abc.Callable - Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Change import
- Replace
Element.getiterator()withElement.iter() - Replace
Element.getchildren()withlist(element) - Change import
- Change import
- Change import
- Replace
Thread.isAlive()withThread.is_alive() - Replace
HTMLParser.unescape()withhtml.unescape() - org.openrewrite.python.migrate.UpgradePythonVersionTo39
Usage
Run this recipe
In order to run Python recipes, you will need to use the Moderne CLI.
Once the CLI is installed, you can install this Python recipe package by running the following command:
Install the recipe package
mod config recipes pip install openrewrite-migrate-python==0.9.3
Then, you can run the recipe via:
Run the recipe
mod run . --recipe org.openrewrite.python.migrate.UpgradeToPython39