Merge pull request #1526 from anba/python3

Make parseTestRecord.py python3 compatible
This commit is contained in:
Rick Waldron 2018-04-24 13:05:04 -04:00 committed by GitHub
commit 20d4977634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: