Skip to content

Commit 7571c41

Browse files
authored
gh-114905: Remove redundant assignment in ssl._create_unverified_context() (GH-103625)
1 parent 7c906a1 commit 7571c41

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/ssl.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,6 @@ def _create_unverified_context(protocol=None, *, cert_reqs=CERT_NONE,
757757
context.check_hostname = check_hostname
758758
if cert_reqs is not None:
759759
context.verify_mode = cert_reqs
760-
if check_hostname:
761-
context.check_hostname = True
762760

763761
if keyfile and not certfile:
764762
raise ValueError("certfile must be specified")

0 commit comments

Comments
 (0)