diff -r 53575feed7c0 -r 4d1dd9cf0dca mercurial/dirstate.py --- 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):