HEX
Server: Apache
System: Linux 95-217-38-122.cprapid.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
User: targetplatform (1004)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/dns/__pycache__/grange.cpython-39.pyc
a

�M�ed�@s6dZddlmZddlZeeeeefd�dd�ZdS)zDNS GENERATE range conversion.�)�TupleN)�text�returncCsd}d}d}d}d}|r0|ddkr0tj�d��|D]b}|dkrZ|dkrZt|�}d}d}q4|dkrtt|�}d}d}q4|��r�||7}q4tj�d	|��q4|dkr�tj�d
��n&|dkr�t|�}n|dks�J�t|�}|dks�J�|dks�J�||k�rtj�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�stepZcur�state�c�r�./usr/lib/python3.9/site-packages/dns/grange.py�	from_texts<	


r)�__doc__�typingrr�strrrrrrr�<module>s