def from_e164(text, origin=public_enum_domain):
 parts = [d for d in text if d.isdigit()]
 parts.reverse()
 return dns.name.from_text('.'.join(parts), origin=origin)

def from_e164 ( text , origin = public_enum_domain ) : parts = [ d for d in text if d . isdigit ( ) ] parts . reverse ( ) return dns . name . from_text ( '.' . join ( parts ) , origin = origin )
convert an e .