관리-도구
편집 파일: NAPTR.pyc
� !`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 sH t | � } | d k s t � t | � } | j | � | j | � d S( Ni ( t lent AssertionErrort 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&