def header_length(bytearray):
 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 ) )
return the length of s when it is encoded with base64 .