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:
Yonggang Luo 2020-12-30 03:55:17 -08:00 committed by GitHub
parent 68b47f5f30
commit 2faafa4cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ def my_maybe_list(value):
def my_multiline_list(lines, value):
# assume no explcit indentor (otherwise have to parse value)
value = []
indent = None
indent = 0
while lines:
line = lines.pop(0)
leading = my_leading_spaces(line)