Mercurial > hg
changeset 31507:4d1dd9cf0dca
dirstate: use future-proof next(iter) instead of iter.next
The latter has been removed in Python 3.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 19 Mar 2017 01:08:17 -0400 |
parents | 53575feed7c0 |
children | 590319c07259 |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dirstate.py Sun Mar 19 01:06:47 2017 -0400 +++ b/mercurial/dirstate.py Sun Mar 19 01:08:17 2017 -0400 @@ -1115,9 +1115,9 @@ else: # We may not have walked the full directory tree above, # so stat and check everything we missed. - nf = iter(visit).next + iv = iter(visit) for st in util.statfiles([join(i) for i in visit]): - results[nf()] = st + results[next(iv)] = st return results def status(self, match, subrepos, ignored, clean, unknown):