mergestate: make unresolved() use iteritems()
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 01 Dec 2015 09:26:10 -0800
changeset 33310 b4d517d736a1
parent 33309 69c4493a54f9
child 33311 f8f716da90fa
mergestate: make unresolved() use iteritems() mergestate.unresolved() is a generator, so it seems better for it to rely on iteritems() than items(), although it also seems unlikely for it to make a noticeable difference.
mercurial/merge.py
--- a/mercurial/merge.py	Fri Jun 30 23:58:59 2017 -0700
+++ b/mercurial/merge.py	Tue Dec 01 09:26:10 2015 -0800
@@ -444,7 +444,7 @@
     def unresolved(self):
         """Obtain the paths of unresolved files."""
 
-        for f, entry in self._state.items():
+        for f, entry in self._state.iteritems():
             if entry[0] == 'u':
                 yield f