[Python-checkins] cpython (3.4): Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.

berker.peksag python-checkins at python.org
Thu Jul 17 04:01:47 CEST 2014


http://hg.python.org/cpython/rev/0045eec1e247
changeset:   91711:0045eec1e247
branch:      3.4
parent:      91709:d6b71971b228
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Thu Jul 17 05:00:36 2014 +0300
summary:
  Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.

files:
  Doc/library/ssl.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -1220,8 +1220,8 @@
       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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list