Kaydet (Commit) 38bf87c7 authored tarafından Berker Peksag's avatar Berker Peksag

Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.

üst 2c6a3aed
......@@ -1220,8 +1220,8 @@ to speed up repeated connections from the same clients.
context.load_default_certs()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com'):
ssl_sock.connect(('www.verisign.com', 443))
ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com')
ssl_sock.connect(('www.verisign.com', 443))
.. versionadded:: 3.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment