Removed debug info

This commit is contained in:
Thomas Sileo 2013-12-26 19:22:55 +01:00
parent 08313c191c
commit e50ecc7811
2 changed files with 2 additions and 5 deletions

View File

@ -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'),

View File

@ -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)