Skip to content

Commit 7d8f319

Browse files
committed
Remove redundant assignment in ssl._create_unverified_context().
1 parent 9d38143 commit 7d8f319

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/ssl.py

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

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

0 commit comments

Comments
 (0)