# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-26 12:30:29 # Node ID 4223bef1489c1bb3fb53f5ad101919de92c67630 # Parent f449138a52dfb9fd0813cf4e4c77c09de22a575a py3: convert a map expression into list comprehension map returns a map object on Python 3 and here we wanted a list instead. Differential Revision: https://phab.mercurial-scm.org/D2456 diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -547,7 +547,7 @@ def testchunkselector(testfn, ui, header chunkselector = curseschunkselector(headerlist, ui, operation) if testfn and os.path.exists(testfn): testf = open(testfn) - testcommands = map(lambda x: x.rstrip('\n'), testf.readlines()) + testcommands = [x.rstrip('\n') for x in testf.readlines()] testf.close() while True: if chunkselector.handlekeypressed(testcommands.pop(0), test=True):