> 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
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to