From 724abcf10ef905bd290e90fff2a69baa3d70a0e6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 24 Jan 2014 01:13:46 +0400 Subject: [PATCH] Use \n instead of os.linesep --- mimedecode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimedecode.py b/mimedecode.py index 5d84a27..37fa212 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -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 -- 2.39.5