diff -r b15c5a66213f Lib/email/parser.py --- a/Lib/email/parser.py Thu Oct 02 12:39:02 2014 +0200 +++ b/Lib/email/parser.py Thu Oct 02 17:54:54 2014 -0700 @@ -105,7 +105,8 @@ parsing after reading the headers or not. The default is False, meaning it parses the entire contents of the file. """ - fp = TextIOWrapper(fp, encoding='ascii', errors='surrogateescape') + fp = TextIOWrapper(fp, encoding='ascii', errors='surrogateescape', + newline='') try: return self.parser.parse(fp, headersonly) finally: