Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias Assign NameStore ListLoad Str Str Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMult Str Num Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Return ListComp TupleLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return ListLoad TupleLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Import alias Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If BoolOpAnd CompareGt NameLoad Num SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num Index Num Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num Index Num attr body Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num For NameStore Call NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore BinOpMod Call NameLoad NameLoad Num If NameLoad body AugAssignAdd NameStore SubscriptLoad Str Slice BinOpSub Num NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpAdd Str NameLoad Assign NameStore ListLoad Assign NameStore NameStore NameLoad For TupleStore NameStore NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body AugAssignAdd NameStore BinOpAdd NameLoad NameLoad orelse AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad For TupleStore NameStore NameStore NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Str Str body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If NameLoad body Assign NameStore BoolOpAnd NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareNotIn NameLoad TupleLoad NameLoad Str body If BoolOpAnd CompareIn NameLoad TupleLoad NameLoad Str UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse If BoolOpAnd CompareNotIn NameLoad TupleLoad NameLoad Str UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpAnd NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore BoolOpOr AttributeLoad NameLoad attr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr Str If CompareNotEq NameLoad AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body If CompareNotEq NameLoad Str body Raise Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BoolOpOr Call AttributeLoad NameLoad attr CompareIn NameLoad TupleLoad Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad Str body Expr Str Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign NameStore Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore NameStore NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Assign NameStore BoolOpAnd NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Import alias If CompareNotIn NameLoad TupleLoad NameLoad Str body If BoolOpOr UnaryOpNot NameLoad CompareNotIn NameLoad TupleLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr orelse If BoolOpAnd CompareNotIn NameLoad TupleLoad NameLoad Str UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Str NameLoad For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad NameLoad Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq NameLoad TupleLoad Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body If Call AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index Num Call NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Return If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Yield BinOpSub AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr While NameLoad body Expr Yield BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str BinOpAdd NameLoad NameLoad If SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Slice Num ListLoad Str orelse Expr Call AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore Call NameLoad BinOpMult ListLoad Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body For NameStore Call NameLoad BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num body If Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad body Break Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad Num Index Num If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad body Break orelse Continue Break orelse Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign SubscriptStore NameLoad Slice NameLoad ListLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call AttributeLoad NameLoad attr Num body Return TupleLoad Str Str Return Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr GeneratorExp Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign SubscriptStore NameLoad Slice NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareEq AttributeLoad NameLoad attr Num BoolOpOr UnaryOpNot NameLoad Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call NameLoad attr decorator_list decorator_list
N/A N/A Header encoding and decoding functionality. __future__ unicode_literals __future__ division __future__ absolute_import future.builtins bytes range str super zip N/A __all__ N/A Header decode_header make_header N/A re N/A binascii future.backports email future.backports.email base64mime future.backports.email.errors HeaderParseError N/A future.backports.email.charset _charset future.backports.email.quoprimime _max_append header_decode N/A Charset N/A _charset Charset N/A NL N/A SPACE N/A BSPACE N/A SPACE8 N/A 8 N/A EMPTYSTRING N/A MAXLINELEN 78 N/A FWS N/A USASCII N/A Charset us-ascii N/A UTF8 N/A Charset utf-8 N/A ecre N/A N/A re compile 
  =\?                   # literal =?
  (?P<charset>[^?]*?)   # non-greedy up to the next ? is the charset
  \?                    # literal ?
  (?P<encoding>[qb])    # either a "q" or a "b", case insensitive
  \?                    # literal ?
  (?P<encoded>.*?)      # non-greedy up to the next ?= is the encoded string
  \?=                   # literal ?=
   N/A N/A N/A re VERBOSE N/A re IGNORECASE N/A re MULTILINE N/A fcre N/A N/A re compile [\041-\176]+:$ N/A _embeded_header N/A N/A re compile \n[^ \t]+: decode_header N/A N/A header N/A N/A N/A Decode a message header value without converting charset.

    Returns a list of (string, charset) pairs containing each of the decoded
    parts of the header.  Charset is None for non-encoded parts of the header,
    otherwise a lower-case string containing the name of the character set
    specified in the encoded string.

    header may be a string that may or may not contain RFC2047 encoded words,
    or it may be a Header object.

    An email.errors.HeaderParseError may be raised when certain decoding error
    occurs (e.g. a base64 decoding exception).
     N/A N/A hasattr header _chunks N/A N/A N/A N/A N/A N/A _charset _encode string N/A str charset N/A str charset N/A N/A string charset N/A header _chunks N/A N/A N/A N/A ecre search header N/A N/A N/A N/A header None N/A words N/A N/A line N/A N/A header splitlines N/A N/A parts N/A N/A ecre split line N/A first True N/A parts N/A N/A unencoded N/A N/A parts pop 0 N/A first N/A N/A unencoded N/A N/A unencoded lstrip N/A first False N/A unencoded N/A N/A N/A N/A words append N/A unencoded None None N/A parts N/A N/A charset N/A N/A N/A N/A parts pop 0 lower N/A encoding N/A N/A N/A N/A parts pop 0 lower N/A encoded N/A N/A parts pop 0 N/A N/A N/A words append N/A encoded encoding charset N/A sys N/A droplist N/A N/A N/A n w N/A enumerate words N/A N/A N/A N/A n 1 N/A w N/A 1 N/A N/A words N/A N/A n 2 N/A 1 N/A N/A N/A N/A words N/A N/A n 1 N/A 0 isspace N/A N/A N/A N/A droplist append N/A n 1 N/A d N/A reversed droplist N/A N/A N/A words N/A d N/A decoded_words N/A N/A N/A encoded_string encoding charset words N/A N/A N/A encoding None N/A N/A N/A N/A decoded_words append N/A encoded_string charset N/A N/A N/A encoding q N/A N/A word N/A header_decode encoded_string N/A N/A N/A decoded_words append N/A word charset N/A N/A N/A encoding b N/A N/A paderr N/A N/A len encoded_string 4 N/A paderr N/A N/A encoded_string N/A === N/A N/A 4 paderr N/A N/A N/A word N/A N/A base64mime decode encoded_string N/A N/A N/A N/A binascii Error N/A N/A N/A HeaderParseError Base64 decoding error N/A N/A N/A N/A decoded_words append N/A word charset N/A N/A N/A AssertionError N/A Unexpected encoding:  encoding N/A collapsed N/A N/A last_word last_charset None N/A N/A word charset decoded_words N/A N/A N/A isinstance word str N/A N/A word N/A bytes word raw-unicode-escape N/A N/A last_word None N/A N/A last_word word N/A last_charset charset N/A N/A N/A charset last_charset N/A N/A N/A N/A collapsed append N/A last_word last_charset N/A last_word word N/A last_charset charset N/A N/A N/A last_charset None N/A N/A last_word N/A BSPACE word N/A N/A last_word word N/A N/A N/A collapsed append N/A last_word last_charset N/A collapsed N/A make_header N/A N/A decoded_seq maxlinelen header_name continuation_ws N/A None None N/A N/A Create a Header from a sequence of pairs as returned by decode_header()

    decode_header() takes a header value string and returns a sequence of
    pairs of the format (decoded_string, charset) where charset is the string
    name of the character set.

    This function takes one of those sequence of pairs and returns a Header
    instance.  Optional maxlinelen, header_name, and continuation_ws are as in
    the Header constructor.
     N/A h N/A Header maxlinelen maxlinelen header_name header_name continuation_ws continuation_ws N/A N/A s charset decoded_seq N/A N/A N/A N/A charset None N/A N/A isinstance charset Charset N/A N/A charset N/A Charset charset N/A N/A N/A h append s charset N/A h N/A Header N/A object N/A __init__ N/A N/A self s charset maxlinelen header_name continuation_ws errors N/A None None None None strict N/A N/A Create a MIME-compliant header that can contain many character sets.

        Optional s is the initial header value.  If None, the initial header
        value is not set.  You can later append to the header with .append()
        method calls.  s may be a byte string or a Unicode string, but see the
        .append() documentation for semantics.

        Optional charset serves two purposes: it has the same meaning as the
        charset argument to the .append() method.  It also sets the default
        character set for all subsequent .append() calls that omit the charset
        argument.  If charset is not provided in the constructor, the us-ascii
        charset is used both as s's initial charset and as the default for
        subsequent .append() calls.

        The maximum line length can be specified explicitly via maxlinelen. For
        splitting the first line to a shorter value (to account for the field
        header which isn't included in s, e.g. `Subject') pass in the name of
        the field in header_name.  The default maxlinelen is 78 as recommended
        by RFC 2822.

        continuation_ws must be RFC 2822 compliant folding whitespace (usually
        either a space or a hard tab) which will be prepended to continuation
        lines.

        errors is passed through to the .append() call.
         N/A N/A charset None N/A N/A charset USASCII N/A N/A N/A N/A isinstance charset Charset N/A N/A charset N/A Charset charset N/A N/A self _charset charset N/A N/A self _continuation_ws continuation_ws N/A N/A self _chunks N/A N/A N/A s None N/A N/A N/A N/A self append s charset errors N/A N/A maxlinelen None N/A N/A maxlinelen MAXLINELEN N/A N/A self _maxlinelen maxlinelen N/A N/A header_name None N/A N/A N/A self _headerlen 0 N/A N/A N/A self _headerlen N/A N/A len header_name 2 N/A __str__ N/A N/A self N/A N/A N/A Return the string value of the header. N/A N/A N/A self _normalize N/A uchunks N/A N/A lastcs None N/A lastspace None N/A N/A string charset N/A self _chunks N/A N/A nextcs charset N/A N/A nextcs N/A _charset UNKNOWN8BIT N/A N/A original_bytes N/A N/A string encode ascii surrogateescape N/A string N/A N/A original_bytes decode ascii replace N/A uchunks N/A N/A hasspace N/A string N/A N/A self _nonctext N/A string N/A 0 N/A N/A lastcs N/A None us-ascii N/A N/A N/A N/A nextcs N/A None us-ascii N/A hasspace N/A N/A N/A N/A uchunks append SPACE N/A nextcs None N/A N/A N/A N/A nextcs N/A None us-ascii N/A lastspace N/A N/A N/A N/A uchunks append SPACE N/A lastspace N/A string N/A N/A self _nonctext N/A string N/A -1 N/A lastcs nextcs N/A N/A N/A uchunks append string N/A N/A N/A EMPTYSTRING join uchunks N/A __eq__ N/A N/A self other N/A N/A N/A N/A other N/A str self N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A self other N/A append N/A N/A self s charset errors N/A None strict N/A N/A Append a string to the MIME header.

        Optional charset, if given, should be a Charset instance or the name
        of a character set (which will be converted to a Charset instance).  A
        value of None (the default) means that the charset given in the
        constructor is used.

        s may be a byte string or a Unicode string.  If it is a byte string
        (i.e. isinstance(s, str) is false), then charset is the encoding of
        that 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 either case, when producing an RFC 2822 compliant
        header using RFC 2047 rules, the string will be encoded using the
        output codec of the charset.  If the string cannot be encoded to the
        output codec, a UnicodeError will be raised.

        Optional `errors' is passed as the errors argument to the decode
        call if s is a byte string.
         N/A N/A charset None N/A N/A charset N/A self _charset N/A N/A N/A N/A isinstance charset Charset N/A N/A charset N/A Charset charset N/A N/A N/A isinstance s str N/A N/A input_charset N/A N/A charset input_codec us-ascii N/A N/A input_charset N/A _charset UNKNOWN8BIT N/A N/A s N/A N/A s decode us-ascii surrogateescape N/A N/A s N/A N/A s decode input_charset errors N/A output_charset N/A N/A charset output_codec us-ascii N/A N/A output_charset N/A _charset UNKNOWN8BIT N/A N/A N/A N/A N/A N/A s encode output_charset errors N/A N/A N/A UnicodeEncodeError N/A N/A N/A output_charset us-ascii N/A N/A N/A charset UTF8 N/A N/A N/A N/A self _chunks append N/A s charset N/A _nonctext N/A N/A self s N/A N/A N/A True if string s is not a ctext character of RFC822.
         N/A N/A N/A N/A s isspace N/A s N/A ( ) \ N/A encode N/A N/A self splitchars maxlinelen linesep N/A ;, 	 None N/A N/A Encode a message header into an RFC-compliant format.

        There are many issues involved in converting a given string for use in
        an email header.  Only certain character sets are readable in most
        email clients, and as header strings can only contain a subset of
        7-bit ASCII, care must be taken to properly convert and encode (with
        Base64 or quoted-printable) header strings.  In addition, there is a
        75-character length limit on any given encoded header field, so
        line-wrapping must be performed, even with double-byte character sets.

        Optional maxlinelen specifies the maximum length of each generated
        line, exclusive of the linesep string.  Individual lines may be longer
        than maxlinelen if a folding point cannot be found.  The first line
        will be shorter by the length of the header name plus ": " if a header
        name was specified at Header construction time.  The default value for
        maxlinelen is determined at header construction time.

        Optional splitchars is a string containing characters which should be
        given extra weight by the splitting algorithm during normal header
        wrapping.  This is in very rough support of RFC 2822's `higher level
        syntactic breaks':  split points preceded by a splitchar are preferred
        during line splitting, with the characters preferred in the order in
        which they appear in the string.  Space and tab may be included in the
        string to indicate whether preference should be given to one over the
        other as a split point when other split chars do not appear in the line
        being split.  Splitchars does not affect RFC 2047 encoded lines.

        Optional linesep is a string to be used to separate the lines of
        the value.  The default value is the most useful for typical
        Python applications, but it can be set to \r\n to produce RFC-compliant
        line separators when needed.
         N/A N/A N/A self _normalize N/A N/A maxlinelen None N/A N/A maxlinelen N/A self _maxlinelen N/A N/A maxlinelen 0 N/A N/A maxlinelen 1000000 N/A formatter N/A _ValueFormatter N/A self _headerlen maxlinelen N/A self _continuation_ws splitchars N/A lastcs None N/A hasspace lastspace None N/A N/A string charset N/A self _chunks N/A N/A N/A hasspace None N/A N/A hasspace N/A string N/A N/A self _nonctext N/A string N/A 0 N/A sys N/A N/A lastcs N/A None us-ascii N/A N/A N/A N/A hasspace N/A charset N/A None us-ascii N/A N/A N/A N/A formatter add_transition N/A N/A N/A N/A charset N/A None us-ascii N/A lastspace N/A N/A N/A N/A formatter add_transition N/A lastspace N/A string N/A N/A self _nonctext N/A string N/A -1 N/A lastcs charset N/A hasspace False N/A lines N/A N/A string splitlines N/A lines N/A N/A N/A N/A formatter feed N/A lines N/A 0 charset N/A N/A N/A N/A formatter feed charset N/A line N/A lines N/A 1 N/A N/A N/A N/A formatter newline N/A N/A N/A charset header_encoding None N/A N/A N/A N/A formatter feed N/A self _continuation_ws N/A N/A N/A line lstrip charset N/A N/A sline N/A N/A line lstrip N/A fws N/A line N/A N/A N/A len line N/A len sline N/A N/A N/A formatter feed fws sline charset N/A N/A N/A len lines 1 N/A N/A N/A N/A formatter newline N/A N/A self _chunks N/A N/A N/A N/A formatter add_transition N/A value N/A N/A formatter _str linesep N/A N/A N/A _embeded_header search value N/A N/A N/A HeaderParseError N/A N/A header value appears to contain an embedded header: {!r} format value N/A value N/A _normalize N/A N/A self N/A N/A N/A chunks N/A N/A last_charset None N/A last_chunk N/A N/A N/A string charset N/A self _chunks N/A N/A N/A charset last_charset N/A N/A N/A N/A last_chunk append string N/A N/A N/A last_charset None N/A N/A N/A N/A chunks append N/A N/A N/A SPACE join last_chunk last_charset N/A last_chunk N/A string N/A last_charset charset N/A last_chunk N/A N/A N/A N/A chunks append N/A N/A N/A SPACE join last_chunk last_charset N/A N/A self _chunks chunks N/A N/A _ValueFormatter N/A object N/A __init__ N/A N/A self headerlen maxlen continuation_ws splitchars N/A N/A N/A N/A self _maxlen maxlen N/A N/A self _continuation_ws continuation_ws N/A N/A self _continuation_ws_len N/A len continuation_ws N/A N/A self _splitchars splitchars N/A N/A self _lines N/A N/A N/A self _current_line N/A _Accumulator headerlen N/A _str N/A N/A self linesep N/A N/A N/A N/A N/A self newline N/A N/A N/A linesep join N/A self _lines N/A __str__ N/A N/A self N/A N/A N/A N/A N/A self _str NL N/A newline N/A N/A self N/A N/A N/A end_of_line N/A N/A N/A self _current_line pop N/A N/A end_of_line N/A N/A N/A N/A N/A N/A self _current_line push end_of_line N/A N/A N/A len N/A self _current_line 0 N/A N/A N/A N/A N/A self _current_line is_onlyws N/A N/A N/A N/A self _lines N/A -1 N/A str N/A self _current_line N/A N/A N/A N/A N/A self _lines append N/A str N/A self _current_line N/A N/A N/A N/A self _current_line reset N/A add_transition N/A N/A self N/A N/A N/A N/A N/A N/A self _current_line push N/A feed N/A N/A self fws string charset N/A N/A N/A N/A N/A charset header_encoding None N/A N/A N/A N/A self _ascii_split fws string N/A self _splitchars N/A N/A encoded_lines N/A N/A charset header_encode_lines string N/A N/A self _maxlengths N/A N/A N/A first_line N/A N/A encoded_lines pop 0 N/A N/A N/A IndexError N/A N/A N/A N/A first_line None N/A N/A N/A N/A self _append_chunk fws first_line N/A N/A N/A last_line N/A N/A encoded_lines pop N/A N/A N/A IndexError N/A N/A N/A N/A N/A self newline N/A N/A N/A N/A self _current_line push N/A self _continuation_ws last_line N/A line encoded_lines N/A N/A N/A N/A N/A self _lines append N/A N/A self _continuation_ws line N/A _maxlengths N/A N/A self N/A N/A N/A N/A N/A N/A self _maxlen N/A len N/A self _current_line N/A True N/A N/A N/A N/A N/A self _maxlen N/A self _continuation_ws_len N/A _ascii_split N/A N/A self fws string splitchars N/A N/A N/A parts N/A N/A re split N/A N/A ([ FWS ]+) N/A fws string N/A N/A parts N/A 0 N/A N/A N/A parts N/A 0 N/A N/A N/A N/A N/A parts pop 0 N/A N/A fws part N/A zip N/A N/A N/A iter parts 2 N/A N/A N/A N/A self _append_chunk fws part N/A _append_chunk N/A N/A self fws string N/A N/A N/A N/A N/A N/A self _current_line push fws string N/A N/A N/A len N/A self _current_line N/A self _maxlen N/A N/A ch N/A self _splitchars N/A N/A i N/A range N/A N/A N/A N/A self _current_line part_count 1 0 -1 N/A N/A N/A N/A ch isspace N/A N/A fws N/A N/A N/A self _current_line N/A i N/A 0 N/A N/A fws N/A N/A fws N/A 0 ch N/A N/A N/A prevpart N/A N/A N/A self _current_line N/A N/A i 1 N/A 1 N/A N/A prevpart N/A N/A prevpart N/A -1 ch N/A N/A N/A N/A N/A N/A N/A N/A fws part N/A N/A N/A self _current_line pop N/A N/A N/A N/A self _current_line _initial_size 0 N/A N/A N/A N/A self newline N/A N/A fws N/A N/A fws N/A N/A N/A N/A self _current_line push fws part N/A N/A remainder N/A N/A N/A self _current_line pop_from i N/A N/A N/A N/A self _lines append N/A str N/A self _current_line N/A N/A N/A N/A self _current_line reset remainder N/A N/A _Accumulator N/A list N/A __init__ N/A N/A self initial_size N/A 0 N/A N/A N/A self _initial_size initial_size N/A N/A N/A N/A super __init__ N/A push N/A N/A self fws string N/A N/A N/A N/A N/A self append N/A fws string N/A pop_from N/A N/A self i N/A 0 N/A N/A popped N/A self N/A i N/A N/A self N/A i N/A N/A popped N/A pop N/A N/A self N/A N/A N/A N/A N/A N/A self part_count 0 N/A N/A N/A N/A N/A N/A N/A super pop N/A __len__ N/A N/A self N/A N/A N/A N/A sum N/A N/A N/A len fws N/A len part N/A N/A fws part self N/A self _initial_size N/A __str__ N/A N/A self N/A N/A N/A N/A N/A EMPTYSTRING join N/A N/A N/A EMPTYSTRING join N/A fws part N/A N/A fws part self N/A reset N/A N/A self startval N/A None N/A N/A N/A startval None N/A N/A startval N/A N/A N/A self N/A startval N/A N/A self _initial_size 0 N/A is_onlyws N/A N/A self N/A N/A N/A N/A N/A N/A self _initial_size 0 N/A N/A self N/A N/A N/A str self isspace N/A part_count N/A N/A self N/A N/A N/A N/A N/A N/A super __len__ N/A N/A