# HG changeset patch # User Augie Fackler # Date 2019-01-16 16:00:10 # Node ID 60b3edccf2f72240ec75da41a2692e2c8da9e7f9 # Parent 2888d12b80a602d608e0d0ae233c70a03c7a65b4 remotefilelog: use list comprehension instead of filter for py3 portability Differential Revision: https://phab.mercurial-scm.org/D5605 diff --git a/hgext/remotefilelog/repack.py b/hgext/remotefilelog/repack.py --- a/hgext/remotefilelog/repack.py +++ b/hgext/remotefilelog/repack.py @@ -481,7 +481,7 @@ class repacker(object): else: parent = orphans[i - 1] deltabases[node] = (parent, deltabases[parent][1] + 1) - nodes = filter(lambda node: node not in orphans, nodes) + nodes = [n for n in nodes if n not in orphans] nodes += orphans return nodes