
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
bW                 @   s   d Z ddlZdd ZdS )zDNS GENERATE range conversion.    Nc             C   s   d}d}d}| r(| d dkr(t jjdxj| D ]b}|dkrT|dkrTt|}d}d}q.|dkrnt|}d}d}q.|j r||7 }q.t jjd	| q.W |dkrt jj |dkrt|}|dkrt|}|dkst|dkst||kst|||fS )zConvert the text form of a range in a GENERATE statement to an
    integer.

    @param text: the textual range
    @type text: string
    @return: The start, stop and step values.
    @rtype: tuple
        r   -z!Start cannot be a negative number   /   zCould not parse %s   )r   r   )dnsZ	exceptionSyntaxErrorintisdigitAssertionError)textstepZcurstatecstartstop r   /usr/lib/python3.6/grange.py	from_text   s6    


r   )__doc__r	   r   r   r   r   r   <module>   s   