changeset 41255:60b3edccf2f7

remotefilelog: use list comprehension instead of filter for py3 portability Differential Revision: https://phab.mercurial-scm.org/D5605
author Augie Fackler <augie@google.com>
date Wed, 16 Jan 2019 11:00:10 -0500
parents 2888d12b80a6
children ebda5d4265ec
files hgext/remotefilelog/repack.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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