print function

This commit is contained in:
Stuart D. Gathman
2016-07-26 09:36:23 -04:00
parent f5bd952f64
commit 255624ea80
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -569,9 +569,9 @@ class Milter(Base):
## Provide simple logging to sys.stdout
def log(self,*msg):
print 'Milter:',
for i in msg: print i,
print
print('Milter:',end=None)
for i in msg: print(i,end=None)
print()
@noreply
def connect(self,hostname,family,hostaddr):
+2 -2
View File
@@ -72,7 +72,7 @@ class MimeTestCase(unittest.TestCase):
# python 2.4 doesn't get exceptions on missing boundaries, and
# if message is modified, output is readable by mail clients
if sys.hexversion < 0x02040000:
self.fail('should get boundary error parsing bad rfc822 attachment')
self.fail('should get boundary error parsing bad rfc822 attachment')
except Errors.BoundaryError:
pass
@@ -201,4 +201,4 @@ if __name__ == '__main__':
fp = open(fname,'r')
msg = mime.message_from_file(fp)
mime.defang(msg,scan_zip=True)
print msg.as_string()
print(msg.as_string())