3
¢báWµ ã @ s d Z ddlZdd„ ZdS )zDNS GENERATE range conversion.é Nc C sÐ d}d}d}| r(| d dkr(t jjdƒ‚xj| D ]b}|dkrT|dkrTt|ƒ}d}d}q.|dkrnt|ƒ}d}d}q.|jƒ r€||7 }q.t jjd | ƒ‚q.W |dkr¦t jjƒ ‚|dkr¶t|ƒ}|dkrÆt|ƒ}|||fS )zËConvert 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é ú/é zCould not parse %sé )r r )ÚdnsZ exceptionÚSyntaxErrorÚintÚisdigit)ÚtextÚstepZcurÚstateÚcÚstartÚstop© r ú/usr/lib/python3.6/grange.pyÚ from_text s0
r )Ú__doc__r r r r r r Ú