Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68f4116

Browse files
committed
Issue #21994: Merge with 3.4.
2 parents a98faef + 38bf87c commit 68f4116

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/ssl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,8 +1241,8 @@ to speed up repeated connections from the same clients.
12411241
context.load_default_certs()
12421242

12431243
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))
1244+
ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com')
1245+
ssl_sock.connect(('www.verisign.com', 443))
12461246

12471247
.. versionadded:: 3.4
12481248

0 commit comments

Comments
 (0)