[v4,12/27] framework/programs/run: remove redundant list() around comprehension

Submitted by Dylan Baker on Nov. 9, 2016, 8:53 p.m.

Details

Message ID 6b3573149f21fa1903e7994e82902ae17a409fe7.1478724535.git-series.dylan@pnwbakers.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker Nov. 9, 2016, 8:53 p.m.
This is a list comprehension, it already results in a list. There is no
need to wrap it in the list() constructor call.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
---
 framework/programs/run.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/framework/programs/run.py b/framework/programs/run.py
index 9e82bba..c957895 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -324,7 +324,7 @@  def run(input_):
 
         with open(args.test_list) as test_list:
             # Strip newlines
-            profiles[0].forced_test_list = list([t.strip() for t in test_list])
+            profiles[0].forced_test_list = [t.strip() for t in test_list]
 
     # Set the dmesg type
     if args.dmesg: