a àMÒe¨ ã@s²dZddlZddlZGdd„dejjƒZejejhZ Gdd„dej j ƒZ e edœdd „Zee d œd d „Zeed œdd„ZejZejZejZejZejZejZejZejZejZdS)zDNS Rdata Classes.éNc@sdeZdZdZdZdZeZdZeZdZ e Z dZ dZ e dd „ƒZe d d „ƒZe d d „ƒZe dd„ƒZdS)Ú RdataClasszDNS Rdata ClassrééééþéÿcCsdS)Niÿÿ©©Úclsrrú2/usr/lib/python3.9/site-packages/dns/rdataclass.pyÚ_maximum%szRdataClass._maximumcCsdS)NÚclassrr rrr Ú _short_name)szRdataClass._short_namecCsdS)NZCLASSrr rrr Ú_prefix-szRdataClass._prefixcCstS)N)ÚUnknownRdataclassr rrr Ú_unknown_exception_class1sz#RdataClass._unknown_exception_classN)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú RESERVED0ÚINÚINTERNETÚCHÚCHAOSÚHSÚHESIODÚNONEÚANYÚ classmethodr rrrrrrr rs$   rc@seZdZdZdS)rzA DNS class is unknown.N)rrrrrrrr r9sr)ÚtextÚreturncCs t |¡S)a¦Convert text into a DNS rdata class value. The input text can be a defined DNS RR class mnemonic or instance of the DNS generic class syntax. For example, "IN" and "CLASS1" will both result in a value of 1. Raises ``dns.rdatatype.UnknownRdataclass`` if the class is unknown. Raises ``ValueError`` if the rdata class value is not >= 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``. )rÚto_text)r#rrr r$Os r$)Úrdclassr!cCs|tvr dSdS)zœTrue 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.exceptionÚenumÚIntEnumrrrr&Ú exceptionZ DNSExceptionrÚstrr"r$Úboolr'rrrrrrrrrrr Ús"