AlkantarClanX12
Current Path : /usr/lib64/python2.7/site-packages/dns/ |
Current File : //usr/lib64/python2.7/site-packages/dns/ttl.pyc |
� !`Nc @ s; d Z d d l Z d e j j f d � � YZ d � Z d S( s DNS TTL conversion.i����Nt BadTTLc B s e Z RS( ( t __name__t __module__( ( ( s- /usr/lib64/python2.7/site-packages/dns/ttl.pyR s c C so | j � r t | � } n)| d j � s4 t � n d } d } x� | D]� } | j � rv | d 9} | t | � 7} qG | j � } | d k r� | | d 7} n� | d k r� | | d 7} nc | d k r� | | d 7} nF | d k r� | | d 7} n) | d k r| | 7} n t d | � � d } qG W| d k sDt d � � n | d k s\| d k rkt 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 <