flush= not supported until python-3.3

This commit is contained in:
Stuart D. Gathman
2016-07-26 09:58:30 -04:00
parent 76eb93223c
commit 999a446484
5 changed files with 14 additions and 9 deletions
+4 -2
View File
@@ -136,7 +136,8 @@ def background():
end=None)
# 2005Oct13 02:34:11 [1] msg1 msg2 msg3 ...
for i in msg: print(i,end=None)
print(flush=True)
print()
sys.stdout.flush()
## ===
@@ -151,7 +152,8 @@ def main():
flags += Milter.ADDRCPT
flags += Milter.DELRCPT
Milter.set_flags(flags) # tell Sendmail which features we use
print("%s milter startup" % time.strftime('%Y%b%d %H:%M:%S'),flush=True)
print("%s milter startup" % time.strftime('%Y%b%d %H:%M:%S'))
sys.stdout.flush()
Milter.runmilter("pythonfilter",socketname,timeout)
logq.put(None)
bt.join()