commit | 25c5c51cb83df2452804b3d24ba6cae6b4904d18 | [log] [tgz] |
---|---|---|
author | Brian Foley <bpfoley@google.com> | Wed Jul 13 21:12:37 2016 +0100 |
committer | Brian Foley <bpfoley@google.com> | Mon Aug 15 12:53:04 2016 +0100 |
tree | 0c8b5c34bc2567d3cb07a710070c0003966b0bd0 | |
parent | 90d996736878be37c3c4818aafe9e75bc6b5124b [diff] |
Replace uses of map/lambda with more Pythonic code map(lambda x: expr(x), seq) can be written more simply as [expr(x) for x in seq] Signal that we need the side effects of expr by replacing map(lambda x: UpdateState(x, ...), seq) with for x in seq: UpdateState(x, ...) Signed-off-by: Brian Foley <bpfoley@google.com> Reviewed-by: Viktor Bachraty <vbachraty@google.com>