mirror of https://github.com/python/cpython
02257012f6
* bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. When certain malformed messages have content-type set to 'mulitpart/*' but still have a single part body, iter_attachments can raise AttributeError. This patch fixes it by returning a None value instead when the body is single part. |
||
---|---|---|
.. | ||
mime | ||
__init__.py | ||
_encoded_words.py | ||
_header_value_parser.py | ||
_parseaddr.py | ||
_policybase.py | ||
architecture.rst | ||
base64mime.py | ||
charset.py | ||
contentmanager.py | ||
encoders.py | ||
errors.py | ||
feedparser.py | ||
generator.py | ||
header.py | ||
headerregistry.py | ||
iterators.py | ||
message.py | ||
parser.py | ||
policy.py | ||
quoprimime.py | ||
utils.py |