mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #21994: Merge with 3.4.
This commit is contained in:
commit
68f411670e
1 changed files with 2 additions and 2 deletions
|
@ -1241,8 +1241,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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue