py3: use iter() instead of iterkeys()
authorRishabh Madan <rishabhmadan96@gmail.com>
Thu, 16 Mar 2017 04:53:23 +0530
changeset 31430 807387581d89
parent 31429 2471368281d1
child 31431 406705701c2d
py3: use iter() instead of iterkeys()
mercurial/util.py
--- a/mercurial/util.py	Fri Aug 05 14:15:45 2016 +0200
+++ b/mercurial/util.py	Thu Mar 16 04:53:23 2017 +0530
@@ -2920,7 +2920,7 @@
             del dirs[base]
 
     def __iter__(self):
-        return self._dirs.iterkeys()
+        return iter(self._dirs)
 
     def __contains__(self, d):
         return d in self._dirs