(bytearray)
return sum(len(_QUOPRI_HEADER_MAP[octet]) for octet in bytearray)
Return a header quoted-printable encoding length.

    Note that this does not include any RFC 2047 chrome added by
    `header_encode()`.

    :param bytearray: An array of bytes (a.k.a. octets).
    :return: The length in bytes of the byte array when it is encoded with
        quoted-printable for headers.
Return a header quoted-printable encoding length.
Return a header quoted - printable encoding length .
def header_length(bytearray):
    """Return a header quoted-printable encoding length.

    Note that this does not include any RFC 2047 chrome added by
    `header_encode()`.

    :param bytearray: An array of bytes (a.k.a. octets).
    :return: The length in bytes of the byte array when it is encoded with
        quoted-printable for headers.
    """
    return sum(len(_QUOPRI_HEADER_MAP[octet]) for octet in bytearray)
def header_length ( bytearray ) : return sum ( len ( _QUOPRI_HEADER_MAP [ octet ] ) for octet in bytearray )