[issue7143] get_payload(decode=True) eats last newline in base64 encoded payload

Barry A. Warsaw report at bugs.python.org
Sun Mar 7 22:46:10 CET 2010


Barry A. Warsaw <barry at python.org> added the comment:

Thanks for adding me to the nosy list.  Yep, this code is pretty old so it doesn't surprise me that its implementation isn't quite right.  Of course, I hate get_payload(decode=True) anyway and hope that goes away in email 6.

Having said that, I don't think this can be changed in Python 2.6.  It's pretty common for people to have workarounds for the devil they know and I'd bet that changing this behavior in 2.6.x would break people's code.  I'm okay for doing the sensible thing in Python 2.7 (though we should probably bump the email package's micro version).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7143>
_______________________________________


More information about the Python-bugs-list mailing list