[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0

Lukas J report at bugs.python.org
Wed Feb 13 07:37:00 EST 2019


Lukas J <postbotenamt at gmail.com> added the comment:

Minimal example:


import email.policy
import email.mime.text

responsehtml = "<html>somehtmlbody</html>"

msg = email.mime.text.MIMEText(responsehtml, "html", policy=email.policy.EmailPolicy())

msg["to"] = "test at example.com"
msg["cc"] = "äöü <foo at bar.com>"
msg["From"] = "foo at bar.com"
msg["Subject"] = "test"

msg.as_string()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35985>
_______________________________________


More information about the Python-bugs-list mailing list