list_to_report: map to list(map) py3 support
Change-Id: I628e8175fb4c110d3a02f72e4b2a6e3762f28a71
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/var_funcs.py b/lib/var_funcs.py
index 35fb594..4cd211e 100644
--- a/lib/var_funcs.py
+++ b/lib/var_funcs.py
@@ -635,7 +635,8 @@
# Pad the line with spaces on the right to facilitate processing with
# field_desc_regex.
header_line = pad_format_string % header_line
- columns = map(str.strip, re.findall(field_desc_regex, header_line)[0])
+ columns = list(map(str.strip,
+ re.findall(field_desc_regex, header_line)[0]))
report_obj = []
for report_line in report_list[1:]:
@@ -645,7 +646,8 @@
# Pad the line with spaces on the right to facilitate processing
# with field_desc_regex.
report_line = pad_format_string % report_line
- line = map(str.strip, re.findall(field_desc_regex, report_line)[0])
+ line = list(map(str.strip,
+ re.findall(field_desc_regex, report_line)[0]))
try:
line_dict = collections.OrderedDict(zip(columns, line))
except AttributeError: