diff options
author | Barry Warsaw <barry@python.org> | 2002-09-10 16:13:45 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-09-10 16:13:45 +0000 |
commit | b1c1de3805590f5f67ed2aedd9bd471c81cca011 (patch) | |
tree | 94f208faed4b2d4ee0620eaa4068e1ff04f5b133 /Tools/scripts/logmerge.py | |
parent | 356afac41ff5384e8c82236f9fae162cf83d0559 (diff) | |
download | cpython-git-b1c1de3805590f5f67ed2aedd9bd471c81cca011.tar.gz |
Import _isstring() from the compatibility layer.
_handle_text(): Use _isstring() for stringiness test.
_handle_multipart(): Add a test before the ListType test, checking for
stringiness of the payload. String payloads for multitypes means a
message with broken MIME chrome was parsed by a lax parser. Instead
of raising a BoundaryError in those cases, the entire body is assigned
to the message payload (but since the content type is still
multipart/*, the Generator needs to be updated too).
Diffstat (limited to 'Tools/scripts/logmerge.py')
0 files changed, 0 insertions, 0 deletions