diff options
author | Georg Brandl <georg@python.org> | 2011-01-06 09:23:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-01-06 09:23:56 (GMT) |
commit | b30f3303f70b2a73bd9dec068edcdf78a1c71096 (patch) | |
tree | 4b2206ed4e452ab2ffbd89459005d88b9e9db99c /Doc/library/email.charset.rst | |
parent | 77041b23540764ef0cd4eec4f1368c740daff338 (diff) | |
download | cpython-b30f3303f70b2a73bd9dec068edcdf78a1c71096.zip cpython-b30f3303f70b2a73bd9dec068edcdf78a1c71096.tar.gz cpython-b30f3303f70b2a73bd9dec068edcdf78a1c71096.tar.bz2 |
Fix various issues (mostly Python 2 relics) found by Jacques Ducasse.
Diffstat (limited to 'Doc/library/email.charset.rst')
-rw-r--r-- | Doc/library/email.charset.rst | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Doc/library/email.charset.rst b/Doc/library/email.charset.rst index d4b06fb..1249b71 100644 --- a/Doc/library/email.charset.rst +++ b/Doc/library/email.charset.rst @@ -142,12 +142,6 @@ Import this class from the :mod:`email.charset` module. it is *input_charset*. - .. method:: encoded_header_len() - - Return the length of the encoded header string, properly calculating for - quoted-printable or base64 encoding. - - .. method:: header_encode(string) Header-encode the string *string*. @@ -156,6 +150,16 @@ Import this class from the :mod:`email.charset` module. *header_encoding* attribute. + .. method:: header_encode_lines(string, maxlengths) + + Header-encode a *string* by converting it first to bytes. + + This is similar to :meth:`header_encode` except that the string is fit + into maximum line lengths as given by the argument *maxlengths*, which + must be an iterator: each element returned from this iterator will provide + the next maximum line length. + + .. method:: body_encode(string) Body-encode the string *string*. |