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):
+1 -1
View File
@@ -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())