MOc@s4dZddlZddlZdZdZdS(sIPv4 helper functions.iNcCs]t|dkr!tjjndt|dt|dt|dt|dfS(sConvert an IPv4 address in network form to text form. @param address: The IPv4 address @type address: string @returns: string is %u.%u.%u.%uiiii(tlentdnst exceptiont SyntaxErrortord(taddress((s./usr/lib64/python2.7/site-packages/dns/ipv4.pyt inet_ntoascCs|jd}t|dkr0tjjnxZ|D]R}|jsXtjjnt|dkr7|ddkr7tjjq7q7Wy3g|D]}t|^q}tjd|SWntjjnXdS(sConvert an IPv4 address in text form to network form. @param text: The IPv4 address @type text: string @returns: string t.iiit0tBBBBN( tsplitRRRRtisdigittinttstructtpack(ttexttpartstparttbytes((s./usr/lib64/python2.7/site-packages/dns/ipv4.pyt inet_aton"s  "(t__doc__R t dns.exceptionRRR(((s./usr/lib64/python2.7/site-packages/dns/ipv4.pyts