%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/ipv4.pyc |
� �ac @ sD d Z d d l Z d d l Z d d l m Z d � Z d � Z d S( s IPv4 helper functions.i����Ni ( t binary_typec C sc t | � d k r! t j j � n t | t � s? t | � } n d | d | d | d | d f S( s� Convert an IPv4 address in binary form to text form. *address*, a ``binary``, the IPv4 address in binary form. Returns a ``text``. i s %u.%u.%u.%ui i i i ( t lent dnst exceptiont SyntaxErrort isinstancet bytearray( t address( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/ipv4.pyt inet_ntoa s c C s� t | t � s | j � } n | j d � } t | � d k rN t j j � n xZ | D]R } | j � sv t j j � n t | � d k rU | d d k rU t j j � qU qU Wy3 g | D] } t | � ^ q� } t j d | � SWn t j j � n Xd S( s� Convert an IPv4 address in text form to binary form. *text*, a ``text``, the IPv4 address in textual form. Returns a ``binary``. t .i i i t 0t BBBBN( R R t encodet splitR R R R t isdigitt intt structt pack( t textt partst partt bytes( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/ipv4.pyt inet_aton( s "( t __doc__R t dns.exceptionR t _compatR R R ( ( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/ipv4.pyt <module> s