STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> I reverted r88197 because it was incorrect and caused an email test
> to fail. Once I come up with a test for it I'll fix it correctly.

test_mailbox is a good (indirect) test suite for this change. The problem of 
r88197 is that it replaces msg._payload by msg.get_payload() which is wrong. 
New attached patch mailbox.patch      keeps msg._payload unchanged, but don't 
call _has_surrogates() (do nothing) if msg._payload is None. This patch has no 
test, I'm unable to write a test for this case (directly with the email API).

----------
Added file: http://bugs.python.org/file20530/BytesGenerator_handle_text.patch

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

Reply via email to