dirstate: use future-proof next(iter) instead of iter.next
authorAugie Fackler <augie@google.com>
Sun, 19 Mar 2017 01:08:17 -0400
changeset 31507 4d1dd9cf0dca
parent 31506 53575feed7c0
child 31508 590319c07259
dirstate: use future-proof next(iter) instead of iter.next The latter has been removed in Python 3.
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):