Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-06-18 20:53:00 +0300
committerMatt Clay <matt@mystile.com>2020-06-18 21:50:31 +0300
commitc67efe0bd11717ba1acf7de3f258e001cbc64d8c (patch)
treeb089b49f1ff899f82bdf0f9cf112d1b7bbf4b366 /hacking
parent9bbde9d085406ab105180216fec2646b039dacb5 (diff)
Avoid unnecessary comprehensions.
Diffstat (limited to 'hacking')
-rw-r--r--hacking/shippable/rebalance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/shippable/rebalance.py b/hacking/shippable/rebalance.py
index b262c9186cc..be12027c40d 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):