changeset 36491:149c5af35de5

py3: listify the return value of filter() filter() on Python 3 returns a filter object. Differential Revision: https://phab.mercurial-scm.org/D2515
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 01 Mar 2018 23:52:30 +0530
parents 1c4247b0040a
children 6e90c59b6da1
files hgext/narrow/narrowchangegroup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowchangegroup.py	Thu Mar 01 23:51:32 2018 +0530
+++ b/hgext/narrow/narrowchangegroup.py	Thu Mar 01 23:52:30 2018 +0530
@@ -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