control: Update python2 -> python3
Changes to support moving to python3
Tested:
No change in output using python2 before & after updates
Run using python3 generated output without error
Change-Id: Ic2f923e1554ec24d348b4c0ba03208fec0c0d75f
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index baa0f9b..f30a1a7 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -114,8 +114,7 @@
# of each tuple and ignore possible parameters
result += ", ".join([e[0] for e in rest])
else:
- result += ", ".join(map(lambda e: get_cpp_type(e),
- rest))
+ result += ", ".join([get_cpp_type(e) for e in rest])
result += '>'
return result