Pylint error and warning fixes
Changes:
- C0103: Variable name "ix" doesn't conform to snake_case naming style (invalid-name)
- W0612: Unused variable 'ix' (unused-variable)
- W0611: Unused gen_print imported as gp (unused-import)
Tested: - python3 -m pylint lib/jobs_processing.py
Change-Id: I66d1644e8d31549f4f49ef07747504597c159d72
Signed-off-by: Sandhya Somashekar <sansomas@in.ibm.com>
diff --git a/.flake8-ignore b/.flake8-ignore
index 13c0dcd..180c54a 100644
--- a/.flake8-ignore
+++ b/.flake8-ignore
@@ -36,7 +36,6 @@
lib/gen_robot_ssh.py
lib/gen_valid.py
lib/ipmi_utils.py
-lib/jobs_processing.py
lib/obmc_boot_test.py
lib/openbmc_ffdc.py
lib/openbmc_ffdc_list.py
diff --git a/lib/jobs_processing.py b/lib/jobs_processing.py
index 2f698c9..2c214df 100644
--- a/lib/jobs_processing.py
+++ b/lib/jobs_processing.py
@@ -10,7 +10,6 @@
import os
from multiprocessing import Manager, Process
-import gen_print as gp
from robot.libraries.BuiltIn import BuiltIn
@@ -48,7 +47,7 @@
process_list = []
# Append user-defined times process needed to execute.
- for ix in range(int(num_process)):
+ for _ix in range(int(num_process)):
task = Process(
target=execute_keyword, args=(keyword_name, return_dict)
)