
                             d Z ddlZd Zy)zDNS GENERATE range conversion.    Nc                    d}d}d}| r'| d   dk(  rt         j                  j                  d      | D ]h  }|dk(  r|dk(  rt        |      }d}d}|dk(  rt        |      }d}d}2|j	                         r||z  }Ht         j                  j                  d	|z         |d
v rt         j                  j                         |dk(  rt        |      }|dk(  rt        |      }|dk\  sJ dk\  sJ |k  sJ |||fS )zConvert 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   /   zCould not parse %s)r      )dns	exceptionSyntaxErrorintisdigit)textstepcurstatecstartstops          lib/third_party/dns/grange.py	from_textr      s    D
CE Q3mm''(KLL8
HECE#Xs8DCEYY[1HC--++,@A,FGG  mm''))z3xz3x199A::D== 4    )__doc__r   r    r   r   <module>r      s   $ % 
/r   