py3: listify the return value of filter()
filter() on Python 3 returns a filter object.
Differential Revision: https://phab.mercurial-scm.org/D2515
--- 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