def body_length(bytearray):
 return sum((len(_QUOPRI_BODY_MAP[octet]) for octet in bytearray))

def body_length ( bytearray ) : return sum ( ( len ( _QUOPRI_BODY_MAP [ octet ] ) for octet in bytearray ) )
return a body quoted-printable encoding length .