mirror of https://github.com/tc39/test262.git
Make parseTestRecord.py python3 compatible
This commit is contained in:
parent
c55d2ab7c3
commit
4daa3de9bf
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue