From f47df75422777dd7c85c202f24225c189276cca1 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 25 Dec 2014 22:49:28 +0100 Subject: [PATCH] use system's CA certificates for Python 2.7.9 or higher to verify TLS connection --- isso/ext/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index ce2c6d8..3b54ca8 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -64,7 +64,7 @@ class SMTP(object): timeout=self.conf.getint('timeout')) if self.conf.get('security') == 'starttls': - if sys.version_info >= (3, 4): + if sys.version_info >= (3, 4) or (2, 7, 9) <= sys.version_info <= (3, 0): import ssl self.client.starttls(context=ssl.create_default_context()) else: