manifest: use list(dict) instead of dict.keys() to get a list of keys
authorAugie Fackler <augie@google.com>
Sun, 18 Feb 2018 00:49:29 -0500
changeset 36301 5245bac09e6a
parent 36300 413c179cf7d5
child 36302 ba1807d9a846
manifest: use list(dict) instead of dict.keys() to get a list of keys Differential Revision: https://phab.mercurial-scm.org/D2317
mercurial/manifest.py
--- a/mercurial/manifest.py	Sun Feb 18 00:49:11 2018 -0500
+++ b/mercurial/manifest.py	Sun Feb 18 00:49:29 2018 -0500
@@ -1019,7 +1019,7 @@
 
         # yield this dir's files and walk its submanifests
         self._load()
-        for p in sorted(self._dirs.keys() + self._files.keys()):
+        for p in sorted(list(self._dirs) + list(self._files)):
             if p in self._files:
                 fullp = self._subpath(p)
                 if match(fullp):