> 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!
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Mercurial-devel mailing list Mercurialemail@example.com https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel