dirstate: use future-proof next(iter) instead of iter.next
The latter has been removed in Python 3.
--- 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):