f dZddlZddlmZGddejZGddejZded ed efd Z d ed ed efd Z ded efdZ d ed efdZ ded efdZ d ed efdZejZej Zej"Zej$Zej&Zej(Zej*Zej,Zy)zDNS Message Flags.N)Anyc(eZdZdZdZdZdZdZdZdZ y) Flagii N) __name__ __module__ __qualname__QRAATCRDRAADCDR/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/dns/flags.pyrrs% B B B B B B BrrceZdZdZy)EDNSFlagrN)r r r DOrrrrr.s Brrtext enum_classreturncdd}|j}|D]}|||jz}|S)Nr)splitupper)rrflagstokensts r _from_textr$3s6 E ZZ\F  AGGI&& Lrr!cg}|jjD]\}}||zdk7s|j|!dj|S)Nr ) __members__itemsappendjoin)r!r text_flagskvs r_to_textr.;sNJ&&,,.1 19>   a / 88J rc"t|tS)zgConvert a space-separated list of flag text values into a flags value. Returns an ``int`` )r$rrs r from_textr1Cs dD !!rc"t|tS)zgConvert a flags value into a space-separated list of flag text values. Returns a ``str``. )r.rr!s rto_textr4Ms E4  rc"t|tS)zqConvert a space-separated list of EDNS flag text values into a EDNS flags value. Returns an ``int`` )r$rr0s redns_from_textr6Ws dH %%rc"t|tS)zrConvert an EDNS flags value into a space-separated list of EDNS flag text values. Returns a ``str``. )r.rr3s r edns_to_textr8as E8 $$r)__doc__enumtypingrIntFlagrrstrintr$r.r1r4r6r8rrrrrrrrrrrr?s$  4<<(t|| Scc C S S "C"C"!3!3!&&&%%% WW WW WW WW WW WW WW [[r