File: //usr/lib/python2.4/site-packages/dns/ttl.pyc
mņ
!`Nc @ s8 d Z d k Z d e i i f d YZ d Z d S( s DNS TTL conversion.Nt BadTTLc B s t Z RS( N( t __name__t
__module__( ( ( t+ /usr/lib/python2.4/site-packages/dns/ttl.pyR s c C s | i o t | } n:| d i p
t n d } d } xņ | D]ź } | i o | d 9} | t | 7} qK | i } | d j o | | d 7} n | d j o | | d 7} nj | d j o | | d 7} nK | d
j o | | d 7} n, | d j o | | 7} n t d
| d } qK W| d j p t d n | d j p
| d j o t d n | S( sū Convert the text form of a TTL to an integer.
The BIND 8 units syntax for TTLs (e.g. '1w6d4h3m10s') is supported.
@param text: the textual TTL
@type text: string
@raises dns.ttl.BadTTL: the TTL is not well-formed
@rtype: int
i l i
t wl : t dl Q t hl t ml <