summaryrefslogtreecommitdiffstats
path: root/Doc/library/ssl.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-07-17 02:00:36 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-07-17 02:00:36 (GMT)
commit38bf87c7f285b9ad03feea765ddad9f607876591 (patch)
treecdbed7aff0dfffe527cd3f34666073bb1e32ecf2 /Doc/library/ssl.rst
parent2c6a3aedeb47ce763454f936545b6dddabbe29cb (diff)
downloadcpython-38bf87c7f285b9ad03feea765ddad9f607876591.zip
cpython-38bf87c7f285b9ad03feea765ddad9f607876591.tar.gz
cpython-38bf87c7f285b9ad03feea765ddad9f607876591.tar.bz2
Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.
Diffstat (limited to 'Doc/library/ssl.rst')
-rw-r--r--Doc/library/ssl.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index b473c45..baada1b 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -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