# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-03-01 18:22:30 # Node ID 149c5af35de5f3c46e97e7d41f345de7cfbf37cc # Parent 1c4247b0040ae41cd513a12178b96e65d313cd37 py3: listify the return value of filter() filter() on Python 3 returns a filter object. Differential Revision: https://phab.mercurial-scm.org/D2515 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 @@ def setup(): 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