Skip to content

Commit 4f3deac

Browse files
committed
Remove redundant assignment in ssl._create_unverified_context().
1 parent d494091 commit 4f3deac

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
@@ -749,8 +749,6 @@ def _create_unverified_context(protocol=None, *, cert_reqs=CERT_NONE,
749749
context.check_hostname = check_hostname
750750
if cert_reqs is not None:
751751
context.verify_mode = cert_reqs
752-
if check_hostname:
753-
context.check_hostname = True
754752

755753
if keyfile and not certfile:
756754
raise ValueError("certfile must be specified")

0 commit comments

Comments
 (0)