
    ui
                     *   S r SSKrSSKr " S S\R                  R
                  5      r " S S\R                  R                  5      r	S r
S rS	 rS
 rS r\R                  r\R                   r\R"                  r\R$                  r\R&                  rg)zDNS Opcodes.    Nc                   H    \ rS rSrSrSrSrSrSr\	S 5       r
\	S 5       rS	rg
)Opcode   r               c                     g)N    clss    A/home/kodi/.kodi/addons/script.module.dnspython/lib/dns/opcode.py_maximumOpcode._maximum#   s        c                     [         $ )N)UnknownOpcoder   s    r   _unknown_exception_classOpcode._unknown_exception_class'   s    r   r   N)__name__
__module____qualname____firstlineno__QUERYIQUERYSTATUSNOTIFYUPDATEclassmethodr   r   __static_attributes__r   r   r   r   r      sA    EFFFF   r   r   c                       \ rS rSrSrSrg)r   ,   zAn DNS opcode is unknown.r   N)r   r   r   r   __doc__r!   r   r   r   r   r   ,   s    #r   r   c                 ,    [         R                  U 5      $ )zConvert text into an opcode.

*text*, a ``str``, the textual opcode

Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown.

Returns an ``int``.
)r   	from_text)texts    r   r&   r&   0   s     D!!r   c                     U S-  S-	  $ )zdExtract an opcode from DNS message flags.

*flags*, an ``int``, the DNS flags.

Returns an ``int``.
 x     r   flagss    r   
from_flagsr-   =   s     FNr!!r   c                     U S-  S-  $ )zConvert an opcode to a value suitable for ORing into DNS message
flags.

*value*, an ``int``, the DNS opcode value.

Returns an ``int``.
r*   r)   r   values    r   to_flagsr1   H   s     RK6!!r   c                 ,    [         R                  U 5      $ )zConvert an opcode to text.

*value*, an ``int`` the opcode value,

Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown.

Returns a ``str``.
)r   to_textr/   s    r   r3   r3   T   s     >>%  r   c                 :    [        U 5      [        R                  :H  $ )zaIs the opcode in flags UPDATE?

*flags*, an ``int``, the DNS message flags.

Returns a ``bool``.
)r-   r   r   r+   s    r   	is_updater5   a   s     e--r   )r$   dns.enumdnsdns.exceptionenumIntEnumr   	exceptionDNSExceptionr   r&   r-   r1   r3   r5   r   r   r   r   r   r   r   r   <module>r=      s   $   SXX *$CMM.. $
""	"
!. 					r   