pycodestyle: fix issues
When calling pycodestyle directly on a file (vs the project as a
whole) it seems to be a bit more opinionated. Fix up these issues
so we can change how we call pycodestyle organization-wide.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If561fb1ec3036b5fd5a600969fb5d81274464db2
diff --git a/bin/generate_inventory b/bin/generate_inventory
index 880777c..3654682 100755
--- a/bin/generate_inventory
+++ b/bin/generate_inventory
@@ -91,16 +91,16 @@
# Check if there is mismatch in data vs expect list
if len(inventory_dict) != len(inventory_items):
print_error("The generated list doesn't match Inventory List.\n")
- print (data)
+ print(data)
print_var(inventory_items)
sys.exit()
# Write dictionary data to inventory file
-print ("\nGenerated Inventory item json format\n")
-print (data)
+print("\nGenerated Inventory item json format\n")
+print(data)
out = open(fru_inventory_file_path, 'w')
out.write('inventory_dict = ')
out.write(data)
out.close()
-print ("\nGenerated Inventory File: %s " % fru_inventory_file_path)
+print("\nGenerated Inventory File: %s " % fru_inventory_file_path)