From e50ecc78111dd4603d3a2adb614666a66b148388 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 26 Dec 2013 19:22:55 +0100 Subject: [PATCH] Removed debug info --- isso/ext/notifications.py | 5 ++--- isso/views/comments.py | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index 7e9ad27..fce0a04 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -58,10 +58,9 @@ class SMTP(object): def __enter__(self): klass = (smtplib.SMTP_SSL if self.conf.get('security') == 'ssl' else smtplib.SMTP) - klass = smtplib.SMTP self.client = klass(host=self.conf.get('host'), port=self.conf.getint('port')) - #if self.conf.get('security') == 'starttls': - # self.client.starttls(); + if self.conf.get('security') == 'starttls': + self.client.starttls() if self.conf.get('username') and self.conf.get('password'): self.client.login(self.conf.get('username'), diff --git a/isso/views/comments.py b/isso/views/comments.py index f0ecb00..963e520 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -123,7 +123,6 @@ class API(object): valid, reason = API.verify(data) if not valid: - print valid, "VALID" return BadRequest(reason) for field in ("author", "email"): @@ -135,7 +134,6 @@ class API(object): with self.isso.lock: if uri not in self.threads: - print "URI", uri, local('origin') with http.curl('GET', local("origin"), uri) as resp: if resp and resp.status == 200: uri, title = parse.thread(resp.read(), id=uri)