Formatted python files to follow PEP 8 python code standards.
- Changed the python files in the openbmc-test-automation
directory to conform to python code style standards with
the exception of E402 and E501.
- Resolves openbmc/openbmc-test-automation#1308
Change-Id: I109995c2d248f5a6bb2c0e3c76a6144c8f3aac2e
Signed-off-by: Joy Onyerikwu <onyekachukwu.joy.onyerikwu@ibm.com>
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/wrap_utils.py b/lib/wrap_utils.py
index 2f4ee62..5513b07 100755
--- a/lib/wrap_utils.py
+++ b/lib/wrap_utils.py
@@ -85,7 +85,7 @@
base_arg_default_list = list(base_arg_list)
for ix in range(num_non_defaults, len(base_arg_default_list)):
base_default_ix = ix - num_non_defaults
- if type(base_default_list[base_default_ix]) is str:
+ if isinstance(base_default_list[base_default_ix], str):
default_string = "'" + base_default_list[base_default_ix] + "'"
# Convert "\n" to "\\n".
default_string = default_string.replace("\n", "\\n")
@@ -97,8 +97,8 @@
# Create the argument string which can be used to call the base function.
# Example call_arg_string:
# headers=headers, last=last, first=first
- call_arg_string = ', '.join([val + "=" + val for val in base_arg_list] +
- var_args)
+ call_arg_string = ', '.join([val + "=" + val for val in base_arg_list]
+ + var_args)
# Compose the result values.
func_def_line = "def " + wrap_func_name + "(" + base_arg_default_string +\