%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyc |
� �ac @ s� d Z d d l Z d Z d Z d Z d Z d Z i e d 6e d 6e d 6e d 6e d 6Z d � e j � D� Z d e j j f d � � YZ d � Z d � Z d � Z d � Z d � Z d S( s DNS Opcodes.i����Ni i i i i t QUERYt IQUERYt STATUSt NOTIFYt UPDATEc C s i | ] \ } } | | � q S( ( ( t .0t xt y( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pys <dictcomp>- s t UnknownOpcodec B s e Z d Z RS( s An DNS opcode is unknown.( t __name__t __module__t __doc__( ( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyR 0 s c C se | j � r7 t | � } | d k r7 | d k r7 | Sn t j | j � � } | d k ra t � n | S( s� Convert text into an opcode. *text*, a ``text``, the textual opcode Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown. Returns an ``int``. i i N( t isdigitt intt _by_textt gett uppert NoneR ( t textt value( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyt from_text4 s c C s | d @d ?S( sp Extract an opcode from DNS message flags. *flags*, an ``int``, the DNS flags. Returns an ``int``. i x i ( ( t flags( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyt from_flagsH s c C s | d >d @S( s� Convert an opcode to a value suitable for ORing into DNS message flags. *value*, an ``int``, the DNS opcode value. Returns an ``int``. i i x ( ( R ( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyt to_flagsS s c C s. t j | � } | d k r* t | � } n | S( s� Convert an opcode to text. *value*, an ``int`` the opcode value, Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown. Returns a ``text``. N( t _by_valueR R t str( R R ( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyt to_text_ s c C s t | � t k S( sm Is the opcode in flags UPDATE? *flags*, an ``int``, the DNS message flags. Returns a ``bool``. ( R R ( R ( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyt is_updateo s ( R t dns.exceptiont dnsR R R R R R t itemsR t exceptiont DNSExceptionR R R R R R ( ( ( s? /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/opcode.pyt <module> s&