Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(23872)

Unified Diff: Lib/nntplib.py

Issue 19689: ssl.create_default_context()
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/imaplib.py ('k') | Lib/poplib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/nntplib.py Fri Nov 22 16:20:53 2013 +0100
+++ b/Lib/nntplib.py Fri Nov 22 18:04:20 2013 +0100
@@ -288,9 +288,7 @@
"""
# Generate a default SSL context if none was passed.
if context is None:
- context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
- # SSLv2 considered harmful.
- context.options |= ssl.OP_NO_SSLv2
+ context = ssl.create_default_context()
return context.wrap_socket(sock)
« no previous file with comments | « Lib/imaplib.py ('k') | Lib/poplib.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+