U mf @sdZddlZddlZGdddejjZejejhZ Gdddej j Z e eddd Zee d d d Zeed ddZejZejZejZejZejZejZejZejZejZdS)zDNS Rdata Classes.Nc@sdeZdZdZdZdZeZdZeZdZ e Z dZ dZ e dd Ze d d Ze d d Ze ddZdS) RdataClasszDNS Rdata ClassrcCsdS)Niclsrr= 0 and <= 65535. Returns a ``dns.rdataclass.RdataClass``. )r from_text)r rrr r"=sr")valuer!cCs t|S)aConvert a DNS rdata class value to text. If the value has a known mnemonic, it will be used, otherwise the DNS generic class syntax will be used. Raises ``ValueError`` if the rdata class value is not >= 0 and <= 65535. Returns a ``str``. )rto_text)r#rrr r$Os r$)rdclassr!cCs|tkr dSdS)zTrue if the specified class is a metaclass. The currently defined metaclasses are ANY and NONE. *rdclass* is a ``dns.rdataclass.RdataClass``. TF) _metaclasses)r%rrr is_metaclass]sr')rZdns.enumZdnsZ dns.exceptionenumIntEnumrrrr& exceptionZ DNSExceptionrstrr"r$boolr'rrrrrrrrrrr s"