GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //usr/lib/python2.7/site-packages/dns/ttl.pyo
�
�b�Wc@sKdZddlZddlmZdejjfd��YZd�ZdS(sDNS TTL conversion.i����Ni(tlongtBadTTLcBseZdZRS(s!DNS TTL value is not well-formed.(t__name__t
__module__t__doc__(((s+/usr/lib/python2.7/site-packages/dns/ttl.pyRscCs�|j�rt|�}nM|dj�s4t�ntd�}td�}x�|D]�}|j�r�|d9}|t|�7}qS|j�}|dkr�||td�7}n�|dkr�||td�7}no|dkr�||td�7}nL|d	kr||td
�7}n)|dkr3||7}ntd|��d}qSW|dkshtd
��n|td�ks�|td�kr�td��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
    ii
twi�:	tdi�Qthitmi<tssunknown unit '%s'strailing integeri���s0TTL should be between 0 and 2^31 - 1 (inclusive)(tisdigitRRtlower(ttextttotaltcurrenttc((s+/usr/lib/python2.7/site-packages/dns/ttl.pyt	from_texts8	



$(	Rt
dns.exceptiontdnst_compatRt	exceptiontSyntaxErrorRR(((s+/usr/lib/python2.7/site-packages/dns/ttl.pyt<module>s