]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_parsebody(): Do not create subparts unless the container has a main type of
authorBarry Warsaw <barry@python.org>
Thu, 13 May 2004 23:12:33 +0000 (23:12 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 13 May 2004 23:12:33 +0000 (23:12 +0000)
commit36d0f15a0b6d5c058b229d740bc09973247e4036
tree9d1949614894979cf0b70362090f895f5ea396dd
parent83923867703083794f274e5de432a0ce0325d77e
_parsebody(): Do not create subparts unless the container has a main type of
'multipart' and the boundary is defined.  This fixes SF bug # 846938, and
several recent email-sig bugs where something like a text/html message also
had a boundary parameter.  This would later crash the Generator, which only
consulted the Content-Type to decide how to generate the message (and it would
expect just a string, but find a list there instead).
Lib/email/Parser.py