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/data/model.py b/data/model.py
index e8b232c..926371b 100755
--- a/data/model.py
+++ b/data/model.py
@@ -31,20 +31,20 @@
def get_inventory_list(module_name):
- l = []
+ inventory_list = []
m = imp.load_source('module.name', module_name)
for i in m.ID_LOOKUP['FRU']:
s = m.ID_LOOKUP['FRU'][i]
s = s.replace('<inventory_root>', m.INVENTORY_ROOT)
- l.append(s)
+ inventory_list.append(s)
- return l
+ return inventory_list
def get_inventory_fru_type_list(module_name, fru_type):
- l = []
+ inventory_list = []
m = imp.load_source('module.name', module_name)
for i in m.FRU_INSTANCES.keys():
@@ -52,9 +52,9 @@
print 'found one'
s = i.replace('<inventory_root>', m.INVENTORY_ROOT)
- l.append(s)
+ inventory_list.append(s)
- return l
+ return inventory_list
def call_keyword(keyword):