Make parseTestRecord.py python3 compatible

This commit is contained in:
André Bargull 2018-04-24 09:52:57 -07:00
parent c55d2ab7c3
commit 4daa3de9bf
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ def myMultilineList(lines, value):
leading = myLeadingSpaces(line)
if myIsAllSpaces(line):
pass
elif leading < indent:
elif indent is not None and leading < indent:
lines.insert(0, line)
break;
else:

View File

@ -81,7 +81,7 @@ def yamlAttrParser(testRecord, attrs, name):
parsed = yamlLoad(body)
if (parsed is None):
print "Failed to parse yaml in name %s"%(name)
print("Failed to parse yaml in name %s"%(name))
return
for key in parsed: