← All recipes
Moderne licensed

Replace HTMLParser.unescape() with html.unescape()

Recipe IDorg.openrewrite.python.migrate.ReplaceHtmlParserUnescapeArtifactopenrewrite-migrate-python

HTMLParser.unescape() was removed in Python 3.9. Use html.unescape() instead.

Single recipepythonmigrationhtml3.9Proprietary

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.ReplaceHtmlParserUnescape

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

mod config recipes pip install openrewrite-migrate-python