Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6a3ae commit 38bf87cCopy full SHA for 38bf87c
1 file changed
Doc/library/ssl.rst
@@ -1220,8 +1220,8 @@ to speed up repeated connections from the same clients.
1220
context.load_default_certs()
1221
1222
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1223
- ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com'):
1224
- 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))
1225
1226
.. versionadded:: 3.4
1227
0 commit comments