# HG changeset patch # User Martin von Zweigbergk # Date 1563168876 25200 # Node ID e8727a27e38074ba9825a6961020db8fa0d732fe # Parent f8ef6d5f56f216d754bb77435ad4a26fe2878d28 py3: filter() now returns a generator, so wrap when we need a list diff -r f8ef6d5f56f2 -r e8727a27e380 hgext3rd/evolve/obshistory.py --- 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: