D2515: py3: listify the return value of filter()

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Thu Mar 1 14:15:28 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG149c5af35de5: py3: listify the return value of filter() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2515?vs=6261&id=6270

REVISION DETAIL
  https://phab.mercurial-scm.org/D2515

AFFECTED FILES
  hgext/narrow/narrowchangegroup.py

CHANGE DETAILS

diff --git a/hgext/narrow/narrowchangegroup.py b/hgext/narrow/narrowchangegroup.py
--- a/hgext/narrow/narrowchangegroup.py
+++ b/hgext/narrow/narrowchangegroup.py
@@ -44,7 +44,7 @@
                       source):
         matcher = _cgmatcher(self)
         if matcher:
-            changedfiles = filter(matcher, changedfiles)
+            changedfiles = list(filter(matcher, changedfiles))
         if getattr(self, 'is_shallow', False):
             # See comment in generate() for why this sadness is a thing.
             mfdicts = self._mfdicts



To: pulkit, durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list