Commits

Alex Grönholm committed 1125f45

got rid of the print_() function as it was unnecessary

Comments (0)

Files changed (2)

 __all__ = ['set']
 
 
-def print_(template, *args, **kwargs):
-    template = str(template)
-    if args:
-        template = template % args
-    elif kwargs:
-        template = template % kwargs
-    sys.stdout.writelines(template)
-
-
 if sys.version_info < (3, 0):  
     basestring = basestring
     binary = bytes = str

pymta/test_util.py

 from pymta.api import IMessageDeliverer, IMTAPolicy
 from pymta.lib import PythonicTestCase
 from pymta.mta import PythonMTA
-from pymta.compat import Queue, print_
+from pymta.compat import Queue
 
 
 __all__ = ['BlackholeDeliverer', 'DebuggingMTA', 'MTAThread', 'SMTPTestCase']
         self.server.shutdown_server()
         threading.Thread.join(self, timeout=timeout_seconds)
         if self.isAlive():
-            print_("WARNING: Thread still alive. Timeout while waiting for termination!")
+            print("WARNING: Thread still alive. Timeout while waiting for termination!")
 
 
 class SMTPTestCase(PythonicTestCase):