%PDF- %PDF-
Direktori : /lib/python3/dist-packages/dns/__pycache__/ |
Current File : //lib/python3/dist-packages/dns/__pycache__/grange.cpython-312.pyc |
� 5��ed � �8 � d Z ddlmZ ddlZdedeeeef fd�Zy)zDNS GENERATE range conversion.� )�TupleN�text�returnc �> � d}d}d}d}d}| r'| d dk( rt j j d� �| D ]h }|dk( r|dk( rt |� }d}d}�|dk( rt |� }d}d}�2|j � r||z }�Ht j j d |z � � |dk( rt j j d � �|dk( rt |� }n|dk( sJ �t |� }|dk\ sJ �|dk\ sJ �||kD rt j j d� �|||fS )z�Convert the text form of a range in a ``$GENERATE`` statement to an integer. *text*, a ``str``, the textual range in ``$GENERATE`` form. Returns a tuple of three ``int`` values ``(start, stop, step)``. ���� � r �-z!Start cannot be a negative number�/� zCould not parse %szno stop value specifiedzstart must be <= stop)�dns� exception�SyntaxError�int�isdigit)r �start�stop�step�cur�state�cs �,/usr/lib/python3/dist-packages/dns/grange.py� from_textr s@ � � �E� �D��D� �C� �E� ��Q��3���m�m�'�'�(K�L�L� � H����8��� ���H�E��C��E� �#�X��s�8�D��C��E� �Y�Y�[��1�H�C��-�-�+�+�,@�A�,F�G�G�H� ��z��m�m�'�'�(A�B�B� �!���3�x����z��z��3�x���1�9��9��A�:��:��t�|��m�m�'�'�(?�@�@��4���� )�__doc__�typingr r �strr r � r r �<module>r s. ��$ %� � �/�C� /�E�#�s�C�-�0� /r