%PDF- %PDF-
Direktori : /lib/python3/dist-packages/dns/__pycache__/ |
Current File : //lib/python3/dist-packages/dns/__pycache__/ttl.cpython-312.pyc |
� 5��e� � � � d Z ddlmZ ddlZdZ G d� dej j � Zde de fd �Zd ee e f de fd�Zy)zDNS TTL conversion.� )�UnionNl �� c � � e Zd ZdZy)�BadTTLz!DNS TTL value is not well-formed.N)�__name__� __module__�__qualname__�__doc__� � �)/usr/lib/python3/dist-packages/dns/ttl.pyr r s � �+r r �text�returnc � � | j � rt | � }n�t | � dk( rt �d}d}d}| D ]� }|j � r|dz }|t |� z }d}�)|rt �|j � }|dk( r ||dz z }nC|dk( r ||dz z }n5|d k( r ||d z z }n'|dk( r ||dz z }n|d k( r||z }nt d|z � �d}d}�� |dk( st d� �|dk s |t kD rt d� �|S )z�Convert the text form of a TTL to an integer. The BIND 8 units syntax for TTLs (e.g. '1w6d4h3m10s') is supported. *text*, a ``str``, the textual TTL. Raises ``dns.ttl.BadTTL`` if the TTL is not well-formed. Returns an ``int``. r T� F�wi�: �di�Q �hi �m�<