From patchwork Mon Feb 26 13:12:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2456: py3: convert a map expression into list comprehension From: phabricator X-Patchwork-Id: 28401 Message-Id: <0301d6f0cabd198d802d8732c8d99c2e@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Mon, 26 Feb 2018 13:12:59 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG4223bef1489c: py3: convert a map expression into list comprehension (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2456?vs=6111&id=6124 REVISION DETAIL https://phab.mercurial-scm.org/D2456 AFFECTED FILES mercurial/crecord.py CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -547,7 +547,7 @@ 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):