관리-도구
편집 파일: NAPTR.pyo
� !`Nc @ sY d d l Z d d l Z d d l Z d d l Z d � Z d e j j f d � � YZ d S( i����Nc C s6 t | � } t | � } | j | � | j | � d S( N( t lent chrt write( t filet st lt byte( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyt _write_string s t NAPTRc B s� e Z d Z d d d d d d g Z d � Z d e d � Z d e d � Z e e � Z d d d � Z d d � Z e e � Z d e d � Z d � Z RS( s} NAPTR record @ivar order: order @type order: int @ivar preference: preference @type preference: int @ivar flags: flags @type flags: string @ivar service: service @type service: string @ivar regexp: regular expression @type regexp: string @ivar replacement: replacement name @type replacement: dns.name.Name object @see: RFC 3403t ordert preferencet flagst servicet regexpt replacementc C sS t t | � j | | � | | _ | | _ | | _ | | _ | | _ | | _ d S( N( t superR t __init__R R R R R R ( t selft rdclasst rdtypeR R R R R R ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyR 1 s c K se | j j | | � } d | j | j t j j | j � t j j | j � t j j | j � | j f S( Ns %d %d "%s" "%s" "%s" %s( R t choose_relativityR R t dnst rdatat _escapifyR R R ( R t origint relativizet kwR ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyt to_text; s c C s� | j � } | j � } | j � } | j � } | j � } | j � } | j | | � } | j � | | | | | | | | | � S( N( t get_uint16t get_stringt get_nameR t get_eol( t clsR R t tokR R R R R R R R ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyt from_textD s c C sr t j d | j | j � } | j | � t | | j � t | | j � t | | j � | j j | | | � d S( Ns !HH( t structt packR R R R R R R R t to_wire( R R t compressR t two_ints( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyR% R s c C s^ t j d | | | d !� \ } } | d 7} | d 8} g } x� t d � D]� } t | | � } | d 7} | d 8} | | k s� | d k r� t j j � n | | | | !j � } | | 7} | | 8} | j | � qJ Wt j j | | | | � \ } } | | k rt j j � n | d k r3| j | � } n | | | | | | d | d | d | � S( Ns !HHi i i i i ( R# t unpackt xranget ordR t exceptiont FormErrort unwrapt appendt namet from_wiret NoneR ( R R R t wiret currentt rdlenR R R t stringst iR R R t cused( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyR0 Z s, # c C s | j j | | � | _ d S( N( R R ( R R R ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyR t s c C s� t j d | j | j � } t j d | j | j � } t | | � } | d k r� t | j | j � } | d k r� t | j | j � } | d k r� t | j | j � } | d k r� t | j | j � } q� q� q� n | S( Ns !HHi ( R# R$ R R t cmpR R R R ( R t othert spt opt v( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/NAPTR.pyt _cmpx s !N( t __name__t __module__t __doc__t __slots__R R1 t TrueR R"