changeset 35586:fbf1a5d680ea

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 29 Dec 2017 05:47:17 +0530
parents 35fb3367f72d
children f2f0a777b2e2
files mercurial/manifest.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):