> This loop would never stop if malformed tokens were provided. I guess you
> had a working version in which _isop() could raise IndexError.

Nice catch! I'll turn the `while True` into a `for j in xrange(i + 2, 
len(tokens)):` loop instead, and avoid IndexError or looping to infinity 
altogether. Look for a V3!

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Mercurial-devel mailing list

Reply via email to