Make test262-harness.py Python 3-compatible (#4381)
Less operator is not supported between int and None in Python 3. Fix that Python 2 legacy in test262-harness.py. JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
@@ -129,7 +129,7 @@ def my_maybe_list(value):
|
|||||||
def my_multiline_list(lines, value):
|
def my_multiline_list(lines, value):
|
||||||
# assume no explcit indentor (otherwise have to parse value)
|
# assume no explcit indentor (otherwise have to parse value)
|
||||||
value = []
|
value = []
|
||||||
indent = None
|
indent = 0
|
||||||
while lines:
|
while lines:
|
||||||
line = lines.pop(0)
|
line = lines.pop(0)
|
||||||
leading = my_leading_spaces(line)
|
leading = my_leading_spaces(line)
|
||||||
|
|||||||
Reference in New Issue
Block a user