Mercurial > evolve
changeset 4741:e8727a27e380
py3: filter() now returns a generator, so wrap when we need a list
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 14 Jul 2019 22:34:36 -0700 |
parents | f8ef6d5f56f2 |
children | db3e7f6b5ceb |
files | hgext3rd/evolve/obshistory.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py Fri Jul 12 23:19:50 2019 -0700 +++ b/hgext3rd/evolve/obshistory.py Sun Jul 14 22:34:36 2019 -0700 @@ -322,7 +322,7 @@ # Filter out candidates, returns only nodes with all their successors # already shown - validcandidates = filter(isvalidcandidate, candidates) + validcandidates = list(filter(isvalidcandidate, candidates)) # If we likely have a cycle if not validcandidates: