summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2017-02-08 13:21:31 -0500
committerBrad Bishop <bradleyb@us.ibm.com>2017-02-09 09:08:57 -0500
commit9a6220c185fcde19f3c1f0f856dcf5009b747922 (patch)
treea9827893175726c23e790a281a9ff90c03199a13
parentd782d8eb00636365d21e0aae12a6621aeda74b18 (diff)
downloadphosphor-led-manager-9a6220c185fcde19f3c1f0f856dcf5009b747922.zip
phosphor-led-manager-9a6220c185fcde19f3c1f0f856dcf5009b747922.tar.gz
led_gen: Run pep8
Change-Id: Ifce2040d750254227ebee7af4e46fca029820c83 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rwxr-xr-xparse_led.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/parse_led.py b/parse_led.py
index 8ecfb94..b63d4bc 100755
--- a/parse_led.py
+++ b/parse_led.py
@@ -6,12 +6,18 @@ import argparse
if __name__ == '__main__':
script_dir = os.path.dirname(os.path.realpath(__file__))
parser = argparse.ArgumentParser()
- parser.add_argument("-f","--filename", default='led.yaml', help="Input File Name")
- parser.add_argument("-d","--directory", default=script_dir, help="Input directory")
+ parser.add_argument(
+ "-f", "--filename",
+ default='led.yaml',
+ help="Input File Name")
+ parser.add_argument(
+ "-d", "--directory",
+ default=script_dir,
+ help="Input directory")
args = parser.parse_args()
# Default to the one that is in the current.
- yaml_dir = script_dir;
+ yaml_dir = script_dir
yaml_file = os.path.join(yaml_dir, 'led.yaml')
if args.directory:
@@ -34,7 +40,11 @@ if __name__ == '__main__':
# This section generates an std::map of LedGroupNames to std::set
# of LEDs containing the name and properties
ledset = ifile[group]
- ofile.write(' {\"' + "/xyz/openbmc_project/ledmanager/groups/" + group + '\",{\n')
+ ofile.write(
+ ' {\"' +
+ "/xyz/openbmc_project/ledmanager/groups/" +
+ group +
+ '\",{\n')
for led_dict, list_dict in ledset.iteritems():
# Need this to make sure the LED name is printed once
@@ -50,4 +60,3 @@ if __name__ == '__main__':
ofile.write('},\n')
ofile.write(' }},\n')
ofile.write('};\n')
-
OpenPOWER on IntegriCloud