summaryrefslogtreecommitdiffstats
path: root/Doc/library/ssl.rst
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-11 23:14:35 (GMT)
committerChristian Heimes <christian@python.org>2016-09-11 23:14:35 (GMT)
commitc4d2e500a9a3d0f33eda9ee0377ac6aec5f16b83 (patch)
tree7bc5fba0b998971b5efca548d4a88d3210483b7f /Doc/library/ssl.rst
parent35a24c5a436a8b3ebff6cedce18084bdce2f77a3 (diff)
downloadcpython-c4d2e500a9a3d0f33eda9ee0377ac6aec5f16b83.zip
cpython-c4d2e500a9a3d0f33eda9ee0377ac6aec5f16b83.tar.gz
cpython-c4d2e500a9a3d0f33eda9ee0377ac6aec5f16b83.tar.bz2
Update whatsnew with my contributions
Diffstat (limited to 'Doc/library/ssl.rst')
-rw-r--r--Doc/library/ssl.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index d68b8d0..b7723f4 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -2255,9 +2255,9 @@ recommended to use :const:`PROTOCOL_TLS_CLIENT` or
:const:`PROTOCOL_TLS_SERVER` as the protocol version. SSLv2 and SSLv3 are
disabled by default.
- client_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
- client_context.options |= ssl.OP_NO_TLSv1
- client_context.options |= ssl.OP_NO_TLSv1_1
+ >>> client_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
+ >>> client_context.options |= ssl.OP_NO_TLSv1
+ >>> client_context.options |= ssl.OP_NO_TLSv1_1
The SSL context created above will only allow TLSv1.2 and later (if