diff options
author | Barry Warsaw <barry@python.org> | 2001-09-26 05:32:41 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-09-26 05:32:41 +0000 |
commit | b384e01796fad1293256262e7ab022f176afce9a (patch) | |
tree | c64d312ec9bc8f722ee635f66292da9030ed4674 /Lib/test/pydocfodder.py | |
parent | 6f70c41923a744db79a176c7a13bac2cc952b1d4 (diff) | |
download | cpython-git-b384e01796fad1293256262e7ab022f176afce9a.tar.gz |
In class Generator:
_handle_text(): If the payload is None, then just return (i.e. don't
write anything). Subparts of message/delivery-status types
will have this property since they are just blocks of headers.
Also, when raising the TypeError, include the type of the
payload in the error message.
_handle_multipart(), _handle_message(): When creating a clone of self,
pass in our _mangle_from_ and maxheaderlen flags so the clone
has the same behavior.
_handle_message_delivery_status(): New method to do the proper
printing of message/delivery-status type messages. These have
to be handled differently than other message/* types because
their payloads are subparts containing just blocks of headers.
In class DecodedGenerator:
_dispatch(): Skip over multipart/* messages since we don't care
about them, and don't want the non-text format to appear in
the printed results.
Diffstat (limited to 'Lib/test/pydocfodder.py')
0 files changed, 0 insertions, 0 deletions