summaryrefslogtreecommitdiffstats
path: root/Lib/email/MIMEText.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-06-28 23:46:53 (GMT)
committerBarry Warsaw <barry@python.org>2002-06-28 23:46:53 (GMT)
commit766125080f12f1ff0db7b1cf5b963e9a60324ab3 (patch)
tree3471083e0fa8ca356b87cc619cef24bc21717110 /Lib/email/MIMEText.py
parent062749ac577be62c2f14fe61c2167c9c5b909ea3 (diff)
downloadcpython-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/MIMEText.py')
0 files changed, 0 insertions, 0 deletions