# HG changeset patch # User Augie Fackler # Date 2017-10-15 04:37:24 # Node ID 09397d0dd3b7d25e095d617e6a2ab785f8d980db # Parent a652b7763f669683eb5540c6d4b77ee18e55bc80 dagutil: use a listcomp instead of a map() In Python 3, the map() returns a generator object instead of a list, and some parts of hg depend on this being consumable more than once or sortable in place. Differential Revision: https://phab.mercurial-scm.org/D1099 diff --git a/mercurial/dagutil.py b/mercurial/dagutil.py --- a/mercurial/dagutil.py +++ b/mercurial/dagutil.py @@ -148,7 +148,7 @@ class revlogbaseddag(basedag): if (r is not None and r != nullrev and r not in rl.filteredrevs)] - return map(self._internalize, ids) + return [self._internalize(i) for i in ids] class revlogdag(revlogbaseddag):