|
From: Nicolas S. <nic...@la...> - 2016-06-08 15:48:20
|
tls1_1 and tls1_2 might be available with python 2, too. Remove the comment about py3 which make things confusing. Signed-off-by: Nicolas Sebrecht <nic...@la...> --- The following changes since commit b4c1c9f5fe1ebf48d0e23e3e78814ead64580875: Add "InternalDate" to __all__ (2016-06-06 12:18:35 +1000) are available in the git repository at: https://github.com/nicolas33/imaplib2.git ns/ssl-comment for you to fetch changes up to 29d0018b01ac09d5575dc78d87907d985949e454: remove wrong comment about py3 (2016-06-08 17:38:02 +0200) imaplib2.py | 2 +- imaplib2.py3 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imaplib2.py b/imaplib2.py index 6974639..538659b 100755 --- a/imaplib2.py +++ b/imaplib2.py @@ -485,7 +485,7 @@ class IMAP4(object): import ssl TLS_MAP = {} - if hasattr(ssl, "PROTOCOL_TLSv1_2"): # py3 + if hasattr(ssl, "PROTOCOL_TLSv1_2"): TLS_MAP[TLS_SECURE] = { "tls1_2": ssl.PROTOCOL_TLSv1_2, "tls1_1": ssl.PROTOCOL_TLSv1_1, diff --git a/imaplib2.py3 b/imaplib2.py3 index 6b49d23..8dbeb13 100755 --- a/imaplib2.py3 +++ b/imaplib2.py3 @@ -433,7 +433,7 @@ class IMAP4(object): import ssl TLS_MAP = {} - if hasattr(ssl, "PROTOCOL_TLSv1_2"): # py3 + if hasattr(ssl, "PROTOCOL_TLSv1_2"): TLS_MAP[TLS_SECURE] = { "tls1_2": ssl.PROTOCOL_TLSv1_2, "tls1_1": ssl.PROTOCOL_TLSv1_1, -- 2.7.4 |