diff options
author | Barry Warsaw <barry@python.org> | 2002-06-28 23:46:53 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-06-28 23:46:53 (GMT) |
commit | 766125080f12f1ff0db7b1cf5b963e9a60324ab3 (patch) | |
tree | 3471083e0fa8ca356b87cc619cef24bc21717110 /Lib/email/MIMEBase.py | |
parent | 062749ac577be62c2f14fe61c2167c9c5b909ea3 (diff) | |
download | cpython-766125080f12f1ff0db7b1cf5b963e9a60324ab3.zip cpython-766125080f12f1ff0db7b1cf5b963e9a60324ab3.tar.gz cpython-766125080f12f1ff0db7b1cf5b963e9a60324ab3.tar.bz2 |
Teach this class about "highest-level syntactic breaks" but only for
headers with no charset or 'us-ascii' charsets. Actually this is only
partially true: we know about semicolons (but not true parameters) and
we know about whitespace (but not technically folding whitespace).
Still it should be good enough for all practical purposes.
Other changes include:
__init__(): Add a continuation_ws argument, which defaults to a single
space. Set this to change the whitespace used for continuation lines
when a header must be split. Also, changed the way header line
lengths are calculated, so that they take into account continuation_ws
(when tabs-expanded) and any provided header_name parameter. This
should do much better on returning split headers for which the first
and subsequent lines must fit into a specified width.
guess_maxlinelen(): Removed. I don't think we need this method as
part of the public API.
encode_chunks() -> _encode_chunks(): I don't think we need this one as
part of the public API either.
Diffstat (limited to 'Lib/email/MIMEBase.py')
0 files changed, 0 insertions, 0 deletions