%PDF- %PDF-
Direktori : /proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dns/ |
Current File : //proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dns/ipv4.pyc |
� M��Oc @ s4 d Z d d l Z d d l Z d � Z d � Z d S( s IPv4 helper functions.i����Nc C s] t | � d k r! t j j � n d t | d � t | d � t | d � t | d � f S( s� Convert an IPv4 address in network form to text form. @param address: The IPv4 address @type address: string @returns: string i s %u.%u.%u.%ui i i i ( t lent dnst exceptiont SyntaxErrort ord( t address( ( s. /usr/lib64/python2.7/site-packages/dns/ipv4.pyt inet_ntoa s c C s� | j d � } t | � d k r0 t j j � n xZ | D]R } | j � sX t j j � n t | � d k r7 | d d k r7 t j j � q7 q7 Wy3 g | D] } t | � ^ q� } t j d | � SWn t j j � n Xd S( s� Convert an IPv4 address in text form to network form. @param text: The IPv4 address @type text: string @returns: string t .i i i t 0t BBBBN( t splitR R R R t isdigitt intt structt pack( t textt partst partt bytes( ( s. /usr/lib64/python2.7/site-packages/dns/ipv4.pyt inet_aton"