Use print function everywhere

This commit is contained in:
Stuart D. Gathman
2016-07-26 09:52:40 -04:00
parent 99552b40e9
commit 76eb93223c
12 changed files with 46 additions and 35 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
## @package Milter.test
# A test framework for milters
from __future__ import print_function
import rfc822
import StringIO
import Milter
@@ -35,8 +36,8 @@ class TestBase(object):
self._symlist = [ None, None, None, None, None, None, None ]
def log(self,*msg):
for i in msg: print >>self.logfp, i,
print >>self.logfp
for i in msg: print(i,file=self.logfp,end=None)
print(file=self.logfp,flush=True)
## Set a macro value.
# These are retrieved by the %milter with getsymval.