Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.32.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : ttl.cpython-36.pyc
3

�b�W��@s8dZddlZddlmZGdd�dejj�Zdd�ZdS)	zDNS TTL conversion.�N�)�longc@seZdZdZdS)�BadTTLz!DNS TTL value is not well-formed.N)�__name__�
__module__�__qualname__�__doc__�r	r	�/usr/lib/python3.6/ttl.pyrsrcCs*|j�rt|�}n�|dj�s"t�td�}td�}x�|D]�}|j�rZ|d9}|t|�7}q8|j�}|dkr|||td�7}nl|dkr�||td�7}nR|dkr�||td�7}n8|d	kr�||td
�7}n|dkr�||7}ntd|��d}q8W|dk�std
��|td�k�s|td�k�r&td��|S)z�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
    r�
�wi�:	�di�Q�hi�m�<�szunknown unit '%s'ztrailing integeri���z0TTL should be between 0 and 2^31 - 1 (inclusive))�isdigitrr�lower)�textZtotalZcurrent�cr	r	r
�	from_texts8



r)	rZ
dns.exceptionZdnsZ_compatrZ	exception�SyntaxErrorrrr	r	r	r
�<module>s
© 2025 XylotrechusZ