Make updates to conform to python3
Ran 2to3 to find the changes needed and consumed them.
Change-Id: I9ccaf94fe2807c65373fc3c4e5c6892ca149e818
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/parse_led.py b/parse_led.py
index 608fa92..fdffb6a 100755
--- a/parse_led.py
+++ b/parse_led.py
@@ -47,7 +47,7 @@
ofile.write('static const std::map<std::string,')
ofile.write(' std::set<phosphor::led::Layout::LedAction>>')
ofile.write(' systemLedMap = {\n\n')
- for group in ifile.keys():
+ for group in list(ifile.keys()):
# This section generates an std::map of LedGroupNames to std::set
# of LEDs containing the name and properties
led_dict = ifile[group]
@@ -62,7 +62,7 @@
ofile.write(' }},\n')
continue
- for led_name, list_dict in led_dict.items():
+ for led_name, list_dict in list(led_dict.items()):
value = list_dict.get('Priority')
if led_name in priority_dict:
if value != priority_dict[led_name]: