From 4f3deac8da4eb4040bb43d61b3cf41d489a9fb7d Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 19 Apr 2023 12:04:20 +0200 Subject: [PATCH] Remove redundant assignment in ssl._create_unverified_context(). --- Lib/ssl.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/ssl.py b/Lib/ssl.py index 1d5873726441e4..ce1cad418a95fc 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -749,8 +749,6 @@ def _create_unverified_context(protocol=None, *, cert_reqs=CERT_NONE, context.check_hostname = check_hostname if cert_reqs is not None: context.verify_mode = cert_reqs - if check_hostname: - context.check_hostname = True if keyfile and not certfile: raise ValueError("certfile must be specified") pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy