mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 46aeb6c47e00b0cd3ebcab3735ec1aba7806ca79
This commit is contained in:
parent
7b6e60883f
commit
2ac52623c2
3570 changed files with 12529 additions and 11891 deletions
|
@ -1,6 +1,7 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import os, sys, json, re
|
||||
import collections
|
||||
|
||||
script_directory = os.path.dirname(os.path.abspath(__file__))
|
||||
template_directory = os.path.abspath(
|
||||
|
@ -30,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)
|
||||
return json.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