]> granicus.if.org Git - python/commitdiff
Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.
authorBerker Peksag <berker.peksag@gmail.com>
Thu, 17 Jul 2014 02:00:36 +0000 (05:00 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Thu, 17 Jul 2014 02:00:36 +0000 (05:00 +0300)
Doc/library/ssl.rst

index b473c45a4b1a7a16b729f5b98cfd5a5e87fc9b9a..baada1b553d3ded4bfce74457e992bf7c111b6e4 100644 (file)
@@ -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