mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 993a932dca2b378a44dc55f4ee80812f65d8fb4e
This commit is contained in:
parent
f5ff38b875
commit
af74a5d2cf
331 changed files with 3327 additions and 3531 deletions
|
@ -1,6 +1,6 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import os, sys, json, re
|
||||
import os, sys, json, json5, re
|
||||
import collections
|
||||
|
||||
script_directory = os.path.dirname(os.path.abspath(__file__))
|
||||
|
@ -31,7 +31,7 @@ def load_spec_json(path_to_spec):
|
|||
re_error_location = re.compile('line ([0-9]+) column ([0-9]+)')
|
||||
with open(path_to_spec, "r") as f:
|
||||
try:
|
||||
return json.load(f, object_pairs_hook=collections.OrderedDict)
|
||||
return json5.load(f, object_pairs_hook=collections.OrderedDict)
|
||||
except ValueError as ex:
|
||||
print(ex.message)
|
||||
match = re_error_location.search(ex.message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue