Yu Zhao added the comment:

BytesParser.parse uses TextIOWrapper which by default translates universal 
newlines to '\n'. This breaks binary payload.

Fix the problem by disabling the translation.

----------
components: +email -Library (Lib)
nosy: +yu.z...@getcwd.com
Added file: http://bugs.python.org/file36788/BytesParser_newline.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4661>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to