← All recipes
Moderne licensed

Find deprecated ssl.match_hostname()

Recipe IDorg.openrewrite.python.migrate.FindSslMatchHostnameArtifactopenrewrite-migrate-python

Find usage of the deprecated ssl.match_hostname() function which was removed in Python 3.12. Use ssl.SSLContext.check_hostname instead.

Single recipeProprietary

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

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

mod config recipes pip install openrewrite-migrate-python