commit | 90d996736878be37c3c4818aafe9e75bc6b5124b | [log] [tgz] |
---|---|---|
author | Brian Foley <bpfoley@google.com> | Wed Jul 13 20:22:24 2016 +0100 |
committer | Brian Foley <bpfoley@google.com> | Mon Aug 15 12:52:57 2016 +0100 |
tree | f8f85ba41a869a3c3f58cea43c2a103635f2edfb | |
parent | 21116d89cb11f08a10168518c198ca549692f1f1 [diff] |
Replace map(operator.attrgetter, ...) uses map(operator.attrgetter("foo"), bar) can be replaced by the equivalent, shorter, and much more pythonic [b.foo for b in bar] Signed-off-by: Brian Foley <bpfoley@google.com> Reviewed-by: Viktor Bachraty <vbachraty@google.com>