]> git.phdru.name Git - mimedecode.git/blobdiff - mimedecode.py
Use \n instead of os.linesep
[mimedecode.git] / mimedecode.py
index 5d84a27621954b82724b385282e5bb1f9b358cf6..37fa212f6b5d44310657749f692496dd0e91676a 100755 (executable)
@@ -41,7 +41,7 @@ def output(s, outfile=sys.stdout):
 def output_headers(msg, outfile=sys.stdout):
     unix_from = msg.get_unixfrom()
     if unix_from:
-        output(unix_from + os.linesep)
+        output(unix_from + '\n')
     for key, value in msg.items():
         output("%s: %s\n" % (key, value), outfile)
     output("\n", outfile) # End of headers