##// END OF EJS Templates
py3: convert a map expression into list comprehension...
Pulkit Goyal -
r36454:4223bef1 default
parent child Browse files
Show More
@@ -547,7 +547,7 b' def testchunkselector(testfn, ui, header'
547 chunkselector = curseschunkselector(headerlist, ui, operation)
547 chunkselector = curseschunkselector(headerlist, ui, operation)
548 if testfn and os.path.exists(testfn):
548 if testfn and os.path.exists(testfn):
549 testf = open(testfn)
549 testf = open(testfn)
550 testcommands = map(lambda x: x.rstrip('\n'), testf.readlines())
550 testcommands = [x.rstrip('\n') for x in testf.readlines()]
551 testf.close()
551 testf.close()
552 while True:
552 while True:
553 if chunkselector.handlekeypressed(testcommands.pop(0), test=True):
553 if chunkselector.handlekeypressed(testcommands.pop(0), test=True):
General Comments 0
You need to be logged in to leave comments. Login now