mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
![]() 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. |
||
---|---|---|
.. | ||
test | ||
__init__.py | ||
_compat21.py | ||
_compat22.py | ||
base64MIME.py | ||
Charset.py | ||
Encoders.py | ||
Errors.py | ||
Generator.py | ||
Header.py | ||
Iterators.py | ||
Message.py | ||
MIMEAudio.py | ||
MIMEBase.py | ||
MIMEImage.py | ||
MIMEMessage.py | ||
MIMEMultipart.py | ||
MIMENonMultipart.py | ||
MIMEText.py | ||
Parser.py | ||
quopriMIME.py | ||
Utils.py |