asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T 3 bW @sdZddlZdZdZdZdZdZeeeeedZe dd ej DZ Gd d d ej j Zd d ZddZddZddZddZdS)z DNS Opcodes.N)QUERYIQUERYSTATUSNOTIFYUPDATEccs|]\}}||fVqdS)N).0xyr r /usr/lib/python3.6/opcode.py &src@seZdZdZdS) UnknownOpcodezAn DNS opcode is unknown.N)__name__ __module__ __qualname____doc__r r r rr)srcCsB|jr$t|}|dkr$|dkr$|Stj|j}|dkr>t|S)zConvert text into an opcode. @param text: the textual opcode @type text: string @raises UnknownOpcode: the opcode is unknown @rtype: int rN)isdigitint_by_textgetupperr)textvaluer r r from_text.s rcCs |d@d?S)zUExtract an opcode from DNS message flags. @param flags: int @rtype: int ix r )flagsr r r from_flagsAsr!cCs |d>d@S)z`Convert an opcode to a value suitable for ORing into DNS message flags. @rtype: int rixr )rr r rto_flagsKsr"cCstj|}|dkrt|}|S)zConvert an opcode to text. @param value: the opcdoe @type value: int @raises UnknownOpcode: the opcode is unknown @rtype: string N) _by_valuerstr)rrr r rto_textTs r%cCs t|tkS)znTrue if the opcode in flags is UPDATE. @param flags: DNS flags @type flags: int @rtype: bool )r!r )r r r r is_updatecsr&)rZ dns.exceptionZdnsrrrr r rdictitemsr#Z exceptionZ DNSExceptionrrr!r"r%r&r r r rs$