Mercurial > hg
comparison mercurial/cmdutil.py @ 29711:ac5f6b11aa91
bundlerevlog: use for loop over iterator instead of while True
The iter() builtin has a neat pattern where you give it a callable of
no arguments and a sentinel value, and you can then loop over the
function calls like a normal iterator. This cleans up the code a
little.
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 05 Aug 2016 13:09:50 -0400 |
parents | a1082645d623 |
children | 84a8de5ac901 |
comparison
equal
deleted
inserted
replaced
29710:0839c8d34d78 | 29711:ac5f6b11aa91 |
---|