# HG changeset patch # User Augie Fackler # Date 1519269071 28800 # Node ID 658d694a656e7d3a0c3d8131d7e3255740e283c9 # Parent f3b9377d6aea77b82f03490757cd6a2a715d6f1b narrowbundle2: replace map() with equivalent list comprehension The result of this gets used as a list in core code, so the generator returned by map() on Python 3 is a problem. Differential Revision: https://phab.mercurial-scm.org/D2369 diff -r f3b9377d6aea -r 658d694a656e hgext/narrow/narrowbundle2.py --- a/hgext/narrow/narrowbundle2.py Wed Feb 21 11:58:41 2018 -0500 +++ b/hgext/narrow/narrowbundle2.py Wed Feb 21 19:11:11 2018 -0800 @@ -123,7 +123,7 @@ missing = list(cl.findmissingrevs(common=commonrevs, heads=headsrevs)) visit = reversed(missing) relevant_nodes = set() - visitnodes = map(cl.node, missing) + visitnodes = [cl.node(m) for m in missing] required = set(headsrevs) | known for rev in visit: clrev = cl.changelogrevision(rev)