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.
2 parents a98faef + 38bf87c commit 68f4116Copy full SHA for 68f4116
1 file changed
Doc/library/ssl.rst
@@ -1241,8 +1241,8 @@ to speed up repeated connections from the same clients.
1241
context.load_default_certs()
1242
1243
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1244
- ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com'):
1245
- 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))
1246
1247
.. versionadded:: 3.4
1248
0 commit comments