Skip to content
Snippets Groups Projects
Commit 4daa3de9 authored by André Bargull's avatar André Bargull
Browse files

Make parseTestRecord.py python3 compatible

parent c55d2ab7
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ def myMultilineList(lines, value): ...@@ -71,7 +71,7 @@ def myMultilineList(lines, value):
leading = myLeadingSpaces(line) leading = myLeadingSpaces(line)
if myIsAllSpaces(line): if myIsAllSpaces(line):
pass pass
elif leading < indent: elif indent is not None and leading < indent:
lines.insert(0, line) lines.insert(0, line)
break; break;
else: else:
......
...@@ -81,7 +81,7 @@ def yamlAttrParser(testRecord, attrs, name): ...@@ -81,7 +81,7 @@ def yamlAttrParser(testRecord, attrs, name):
parsed = yamlLoad(body) parsed = yamlLoad(body)
if (parsed is None): if (parsed is None):
print "Failed to parse yaml in name %s"%(name) print("Failed to parse yaml in name %s"%(name))
return return
for key in parsed: for key in parsed:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment