Submitter | phabricator |
---|---|
Date | Feb. 26, 2018, 1:12 p.m. |
Message ID | <0301d6f0cabd198d802d8732c8d99c2e@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28401/ |
State | Not Applicable |
Headers | show |
Comments
Patch
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):