diff options
author | Matt Clay <matt@mystile.com> | 2020-06-18 10:53:00 -0700 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2020-06-18 11:50:31 -0700 |
commit | c67efe0bd11717ba1acf7de3f258e001cbc64d8c (patch) | |
tree | b089b49f1ff899f82bdf0f9cf112d1b7bbf4b366 /hacking | |
parent | 9bbde9d085406ab105180216fec2646b039dacb5 (diff) | |
download | ansible-c67efe0bd11717ba1acf7de3f258e001cbc64d8c.tar.gz |
Avoid unnecessary comprehensions.
Diffstat (limited to 'hacking')
-rw-r--r-- | hacking/shippable/rebalance.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/shippable/rebalance.py b/hacking/shippable/rebalance.py index b262c9186c..be12027c40 100644 --- a/hacking/shippable/rebalance.py +++ b/hacking/shippable/rebalance.py @@ -96,7 +96,7 @@ def get_raw_test_targets(args, test_path): target_times[target_name] = target_runtime - return dict([(k, v) for k, v in sorted(target_times.items(), key=lambda i: i[1], reverse=True)]) + return dict(sorted(target_times.items(), key=lambda i: i[1], reverse=True)) def print_test_runtime(target_times): |