remotefilelog: use list comprehension instead of filter for py3 portability
authorAugie Fackler <augie@google.com>
Wed, 16 Jan 2019 11:00:10 -0500
changeset 41255 60b3edccf2f7
parent 41254 2888d12b80a6
child 41256 ebda5d4265ec
remotefilelog: use list comprehension instead of filter for py3 portability Differential Revision: https://phab.mercurial-scm.org/D5605
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