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/gen_arg.py b/lib/gen_arg.py
index badc099..313a486 100755
--- a/lib/gen_arg.py
+++ b/lib/gen_arg.py
@@ -57,7 +57,7 @@
" the desired stock parameter:\n" +\
gp.sprint_var(stock_list)
return gv.process_error_message(error_message)
- if type(stock_list[ix]) is tuple:
+ if isinstance(stock_list[ix], tuple):
arg_name = stock_list[ix][0]
default = stock_list[ix][1]
else:
@@ -78,10 +78,10 @@
default=default,
type=int,
choices=[1, 0],
- help='If this parameter is set to "1", %(prog)s' +
- ' will print only essential information, i.e. it will' +
- ' not echo parameters, echo commands, print the total' +
- ' run time, etc.' + default_string)
+ help='If this parameter is set to "1", %(prog)s'
+ + ' will print only essential information, i.e. it will'
+ + ' not echo parameters, echo commands, print the total'
+ + ' run time, etc.' + default_string)
elif arg_name == "test_mode":
if default is None:
default = 0
@@ -90,10 +90,10 @@
default=default,
type=int,
choices=[1, 0],
- help='This means that %(prog)s should go through all the' +
- ' motions but not actually do anything substantial.' +
- ' This is mainly to be used by the developer of' +
- ' %(prog)s.' + default_string)
+ help='This means that %(prog)s should go through all the'
+ + ' motions but not actually do anything substantial.'
+ + ' This is mainly to be used by the developer of'
+ + ' %(prog)s.' + default_string)
elif arg_name == "debug":
if default is None:
default = 0
@@ -102,9 +102,9 @@
default=default,
type=int,
choices=[1, 0],
- help='If this parameter is set to "1", %(prog)s will print' +
- ' additional debug information. This is mainly to be' +
- ' used by the developer of %(prog)s.' + default_string)
+ help='If this parameter is set to "1", %(prog)s will print'
+ + ' additional debug information. This is mainly to be'
+ + ' used by the developer of %(prog)s.' + default_string)
elif arg_name == "loglevel":
if default is None:
default = "info"
@@ -114,9 +114,9 @@
type=str,
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL',
'debug', 'info', 'warning', 'error', 'critical'],
- help='If this parameter is set to "1", %(prog)s will print' +
- ' additional debug information. This is mainly to be' +
- ' used by the developer of %(prog)s.' + default_string)
+ help='If this parameter is set to "1", %(prog)s will print'
+ + ' additional debug information. This is mainly to be'
+ + ' used by the developer of %(prog)s.' + default_string)
arg_obj = parser.parse_args()
@@ -125,7 +125,7 @@
__builtin__.debug = 0
__builtin__.loglevel = 'WARNING'
for ix in range(0, len(stock_list)):
- if type(stock_list[ix]) is tuple:
+ if isinstance(stock_list[ix], tuple):
arg_name = stock_list[ix][0]
default = stock_list[ix][1]
else: