3 ¢báWµã@sdZddlZdd„ZdS)zDNS GENERATE range conversion.éNcCsÐd}d}d}|r(|ddkr(tjjdƒ‚xj|D]b}|dkrT|dkrTt|ƒ}d}d}q.|dkrnt|ƒ}d}d}q.|jƒr€||7}q.tjjd |ƒ‚q.W|d kr¦tjjƒ‚|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é)rr)ÚdnsZ exceptionÚ SyntaxErrorÚintÚisdigit)ÚtextÚstepZcurÚstateÚcÚstartÚstop©rú/usr/lib/python3.6/grange.pyÚ from_texts0     r)Ú__doc__r rrrrrÚs