From 11b798a01cde9eee0ff06c2499c676b5cb262a50 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Wed, 8 Aug 2018 20:03:11 +0200 Subject: [PATCH] Fix #571 --- cps/asyncmail.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cps/asyncmail.py b/cps/asyncmail.py index 620e0a06..c7ad3130 100644 --- a/cps/asyncmail.py +++ b/cps/asyncmail.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from __future__ import print_function import smtplib import threading from datetime import datetime @@ -11,7 +12,6 @@ import sys from email.generator import Generator import web from flask_babel import gettext as _ -# from babel.dates import format_datetime import re try: @@ -44,9 +44,7 @@ class email(smtplib.SMTP): def send(self, str): """Send `str' to the server.""" if self.debuglevel > 0: - # from __future__ import print_function - # print('send:', repr(str), file=sys.stderr) - pass + print('send:', repr(str), file=sys.stderr) if hasattr(self, 'sock') and self.sock: try: if self.transferSize: