cpython/Lib/email
Barry Warsaw 174aa49a88 With help from Martin v. Loewis, clarification is added for the
semantics of header chunks using byte and Unicode strings.
Specifically,

append(): When the given string is a byte string, charset (whether
specified explicitly in the argument list or implicitly via the
constructor default) is the encoding of the byte string, and a
UnicodeError will be raised if the string cannot be decoded with that
charset.  If s is a Unicode string, then charset is a hint specifying
the character set of the characters in the string.  In this case, when
producing an RFC 2822 compliant header using RFC 2047 rules, the
Unicode string will be encoded using the following charsets in order:
us-ascii, the charset hint, utf-8.

__init__(): Use the global USASCII Charset instance when the charset
argument is None.  Also, clarification in the docstring.

Also, use True/False where appropriate.
2002-09-30 15:51:31 +00:00
..
test The ansi_x3.4_1968 encoding is an alias for ascii, but isn't known in 2002-09-30 15:23:17 +00:00
Charset.py Added a feature suggested by Martin v Loewis, where a new header 2002-09-28 17:47:56 +00:00
Encoders.py Complete a merge of the mimelib project and the Python cvs codebases 2002-05-19 23:44:19 +00:00
Errors.py Slightly better docstring 2002-06-01 05:45:37 +00:00
Generator.py Use True/False everywhere. 2002-09-28 18:04:55 +00:00
Header.py With help from Martin v. Loewis, clarification is added for the 2002-09-30 15:51:31 +00:00
Iterators.py _structure(): Use .get_content_type() 2002-09-01 21:04:43 +00:00
MIMEAudio.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
MIMEBase.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
MIMEImage.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
MIMEMessage.py __init__(): Be sure to set the default type to message/rfc822. 2002-07-09 02:40:35 +00:00
MIMEMultipart.py __init__(): Don't attach the subparts if its an empty tuple. If the 2002-07-09 02:44:26 +00:00
MIMENonMultipart.py Add a pychecker suppression. 2002-09-28 20:25:15 +00:00
MIMEText.py __init__(): Minor code cleanup. 2002-09-28 20:27:28 +00:00
Message.py is_multipart(): Use isinstance() instead of type equality. 2002-09-28 20:41:39 +00:00
Parser.py Use True/False everywhere. 2002-09-28 20:44:58 +00:00
Utils.py Use True/False everywhere, and other code cleanups. 2002-09-28 20:49:57 +00:00
__init__.py The ansi_x3.4_1968 encoding is an alias for ascii, but isn't known in 2002-09-30 15:23:17 +00:00
_compat21.py _isstring(): Factor out "stringiness" test, e.g. for StringType or 2002-09-10 16:09:06 +00:00
_compat22.py _isstring(): Factor out "stringiness" test, e.g. for StringType or 2002-09-10 16:09:06 +00:00
base64MIME.py Use True/False everywhere, and other code cleanups. 2002-09-28 21:02:51 +00:00
quopriMIME.py Use True/False everywhere, and other code cleanups. 2002-09-28 21:02:51 +00:00