Replace HTMLParser.unescape() with html.unescape()
Recipe ID
org.openrewrite.python.migrate.ReplaceHtmlParserUnescapeArtifactopenrewrite-migrate-pythonHTMLParser.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.ReplaceHtmlParserUnescapeIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python