File: //usr/lib/python2.4/site-packages/dns/ipv4.pyc
mò
MOc @ s. d Z d k Z d k Z d „ Z d „ Z d S( s IPv4 helper functions.Nc C s_ t | ƒ d j o t i i ‚ 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 N( t lent addresst dnst exceptiont SyntaxErrort ord( R ( ( t, /usr/lib/python2.4/site-packages/dns/ipv4.pyt inet_ntoa s c C sé | i d ƒ } t | ƒ d j o t i i ‚ n x_ | D]W } | i ƒ p t i i ‚ n t | ƒ d j o! | d d j o t i i ‚ q9 q9 Wy; g } | D] } | t
| ƒ q¢ ~ } t i
d | Œ SWn t i i ‚ 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 textt splitt partsR R R R t partt isdigitt _[1]t intt bytest structt pack( R R R
R R ( ( R t inet_aton"