diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-07-17 02:00:36 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-07-17 02:00:36 (GMT) |
commit | 38bf87c7f285b9ad03feea765ddad9f607876591 (patch) | |
tree | cdbed7aff0dfffe527cd3f34666073bb1e32ecf2 /Doc | |
parent | 2c6a3aedeb47ce763454f936545b6dddabbe29cb (diff) | |
download | cpython-38bf87c7f285b9ad03feea765ddad9f607876591.zip cpython-38bf87c7f285b9ad03feea765ddad9f607876591.tar.gz cpython-38bf87c7f285b9ad03feea765ddad9f607876591.tar.bz2 |
Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ssl.rst | 4 |
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 |