py3: don't use dict.iterkeys()
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 29 Dec 2017 05:47:17 +0530
changeset 35586 fbf1a5d680ea
parent 35585 35fb3367f72d
child 35587 f2f0a777b2e2
py3: don't use dict.iterkeys() Instead of iterating of dict.iterkeys(), let's iterate of dict as that will be equivalent and dict.iterkeys() is not present in Python 3. Differential Revision: https://phab.mercurial-scm.org/D1796
mercurial/manifest.py
--- a/mercurial/manifest.py	Fri Dec 29 05:29:04 2017 +0530
+++ b/mercurial/manifest.py	Fri Dec 29 05:47:17 2017 +0530
@@ -810,7 +810,7 @@
             if p in self._files:
                 yield self._subpath(p)
             else:
-                for f in self._dirs[p].iterkeys():
+                for f in self._dirs[p]:
                     yield f
 
     def keys(self):