print function
This commit is contained in:
+3
-3
@@ -569,9 +569,9 @@ class Milter(Base):
|
|||||||
|
|
||||||
## Provide simple logging to sys.stdout
|
## Provide simple logging to sys.stdout
|
||||||
def log(self,*msg):
|
def log(self,*msg):
|
||||||
print 'Milter:',
|
print('Milter:',end=None)
|
||||||
for i in msg: print i,
|
for i in msg: print(i,end=None)
|
||||||
print
|
print()
|
||||||
|
|
||||||
@noreply
|
@noreply
|
||||||
def connect(self,hostname,family,hostaddr):
|
def connect(self,hostname,family,hostaddr):
|
||||||
|
|||||||
+1
-1
@@ -201,4 +201,4 @@ if __name__ == '__main__':
|
|||||||
fp = open(fname,'r')
|
fp = open(fname,'r')
|
||||||
msg = mime.message_from_file(fp)
|
msg = mime.message_from_file(fp)
|
||||||
mime.defang(msg,scan_zip=True)
|
mime.defang(msg,scan_zip=True)
|
||||||
print msg.as_string()
|
print(msg.as_string())
|
||||||
|
|||||||
Reference in New Issue
Block a user