From 4561a162949e95a2bd7fb10a5492c4e658d5d652 Mon Sep 17 00:00:00 2001 From: zhangbailin Date: Wed, 13 May 2020 10:39:13 +0800 Subject: [PATCH] Fix flake8 error from hacking <3.0.1 Change-Id: I7cd28bb078550f51f420df3f96b38e6ab403b2ce --- .../unit/accelerator/drivers/fpga/intel/prepare_test_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyborg/tests/unit/accelerator/drivers/fpga/intel/prepare_test_data.py b/cyborg/tests/unit/accelerator/drivers/fpga/intel/prepare_test_data.py index c9183a8d..a4d605c7 100755 --- a/cyborg/tests/unit/accelerator/drivers/fpga/intel/prepare_test_data.py +++ b/cyborg/tests/unit/accelerator/drivers/fpga/intel/prepare_test_data.py @@ -202,7 +202,7 @@ def gen_fpga_content(path, dev): f.write(v + "\n") elif type(v) is list: with open(p, 'a') as f: - f.writelines([l + "\n" for l in v]) + f.writelines([item + "\n" for item in v]) def gen_fpga_sub_dir(path):