changeset 36301:5245bac09e6a

manifest: use list(dict) instead of dict.keys() to get a list of keys Differential Revision: https://phab.mercurial-scm.org/D2317
author Augie Fackler <augie@google.com>
date Sun, 18 Feb 2018 00:49:29 -0500
parents 413c179cf7d5
children ba1807d9a846
files mercurial/manifest.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):