# HG changeset patch # User Augie Fackler # Date 1547654410 18000 # Node ID 60b3edccf2f72240ec75da41a2692e2c8da9e7f9 # Parent 2888d12b80a602d608e0d0ae233c70a03c7a65b4 remotefilelog: use list comprehension instead of filter for py3 portability Differential Revision: https://phab.mercurial-scm.org/D5605 diff -r 2888d12b80a6 -r 60b3edccf2f7 hgext/remotefilelog/repack.py --- a/hgext/remotefilelog/repack.py Wed Jan 16 10:59:32 2019 -0500 +++ b/hgext/remotefilelog/repack.py Wed Jan 16 11:00:10 2019 -0500 @@ -481,7 +481,7 @@ 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