File: //proc/3/root/proc/2/task/2/root/usr/lib/python2.4/site-packages/dns/opcode.pyc
mò
!`Nc @ sæ d Z d k Z d Z d Z d Z d Z d Z h d e <d e <d e <d
e <d e <Z e g Z
e i D] \ Z Z
e
e
e f qt [
Z d e i i f d
YZ d Z d Z d Z d Z d Z d S( s DNS Opcodes.Ni i i i i t QUERYt IQUERYt STATUSt NOTIFYt UPDATEt
UnknownOpcodec B s t Z d Z RS( s Raised if an opcode is unknown.( t __name__t
__module__t __doc__( ( ( t. /usr/lib/python2.4/site-packages/dns/opcode.pyR ) s c C so | i o2 t | } | d j o | d j o | Sq? n t i | i } | d j o
t n | S( s Convert text into an opcode.
@param text: the textual opcode
@type text: string
@raises UnknownOpcode: the opcode is unknown
@rtype: int
i i N( t textt isdigitt intt valuet _by_textt gett uppert NoneR ( R
R
( ( R t from_text- s
c C s | d @d ?S( sU Extract an opcode from DNS message flags.
@param flags: int
@rtype: int
i x i N( t flags( R ( ( R t
from_flags? s c C s | d >d @S( s` Convert an opcode to a value suitable for ORing into DNS message
flags.
@rtype: int
i i x N( R
( R
( ( R t to_flagsH s c C s0 t i | } | d j o t | } n | S( s Convert an opcode to text.
@param value: the opcdoe
@type value: int
@raises UnknownOpcode: the opcode is unknown
@rtype: string
N( t _by_valueR R
R
R t str( R
R
( ( R t to_textP s
c C s t | t j o t Sn t S( sn True if the opcode in flags is UPDATE.
@param flags: DNS flags
@type flags: int
@rtype: bool
N( R R R t Truet False( R ( ( R t is_update^ s ( R t
dns.exceptiont dnsR R R R R R t dictt _[1]t iteritemst xt yR t exceptiont DNSExceptionR R R R R R ( R R R R R R R R R R R R! R"