# HG changeset patch # User Augie Fackler # Date 1518537298 18000 # Node ID 0c104ee51918285b9301f2bc35389150b34d0bd5 # Parent 4a7ba3ac916342cc6d66fe5778c0268dd70fb2e9 narrowrepo: filter() is a generator on py3, wrap in list() Was at the top of Python 3 exceptions. Differential Revision: https://phab.mercurial-scm.org/D2229 diff -r 4a7ba3ac9163 -r 0c104ee51918 hgext/narrow/narrowrepo.py --- a/hgext/narrow/narrowrepo.py Tue Feb 13 10:39:31 2018 -0500 +++ b/hgext/narrow/narrowrepo.py Tue Feb 13 10:54:58 2018 -0500 @@ -103,13 +103,13 @@ def status(self, *args, **kwargs): s = super(narrowrepository, self).status(*args, **kwargs) narrowmatch = self.narrowmatch() - modified = filter(narrowmatch, s.modified) - added = filter(narrowmatch, s.added) - removed = filter(narrowmatch, s.removed) - deleted = filter(narrowmatch, s.deleted) - unknown = filter(narrowmatch, s.unknown) - ignored = filter(narrowmatch, s.ignored) - clean = filter(narrowmatch, s.clean) + modified = list(filter(narrowmatch, s.modified)) + added = list(filter(narrowmatch, s.added)) + removed = list(filter(narrowmatch, s.removed)) + deleted = list(filter(narrowmatch, s.deleted)) + unknown = list(filter(narrowmatch, s.unknown)) + ignored = list(filter(narrowmatch, s.ignored)) + clean = list(filter(narrowmatch, s.clean)) return scmutil.status(modified, added, removed, deleted, unknown, ignored, clean)