[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?
garazi111
report at bugs.python.org
Sun May 9 13:54:46 CEST 2010
garazi111 <garazi111 at yahoo.fr> added the comment:
Hi,
I think the bug is also present in the function encode_quopri which should look like this :
def encode_quopri(msg):
"""Encode the message's payload in quoted-printable.
Also, add an appropriate Content-Transfer-Encoding header.
"""
orig = msg.get_payload()
encdata = _qencode(orig)
data = str(encdata, "ASCII")
msg.set_payload(data)
msg['Content-Transfer-Encoding'] = 'quoted-printable'
----------
nosy: +garazi111
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4768>
_______________________________________
More information about the Python-bugs-list
mailing list