mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 9fc797e6e5fb7d244dfb5b5125886c01f8cedf2b
This commit is contained in:
parent
b7e9bab267
commit
6dda93c6e2
55 changed files with 646 additions and 128 deletions
|
@ -3,6 +3,7 @@
|
|||
# Initial code by fantasai, joint copyright 2010 W3C and Microsoft
|
||||
# Licensed under BSD 3-Clause: <http://www.w3.org/Consortium/Legal/2008/03-bsd-license>
|
||||
|
||||
from __future__ import print_function
|
||||
from os.path import basename, exists, join
|
||||
import os
|
||||
import filecmp
|
||||
|
@ -965,7 +966,7 @@ class XMLSource(FileSource):
|
|||
if ((not self.metadata) and self.tree and (not self.errors)):
|
||||
self.extractMetadata(self.tree)
|
||||
except etree.ParseError as e:
|
||||
print "PARSE ERROR: " + self.sourcepath
|
||||
print("PARSE ERROR: " + self.sourcepath)
|
||||
self.cacheAsParseError(self.sourcepath, e)
|
||||
e.W3CTestLibErrorLocation = self.sourcepath
|
||||
self.errors = [str(e)]
|
||||
|
@ -1375,7 +1376,7 @@ class HTMLSource(XMLSource):
|
|||
if ((not self.metadata) and self.tree and (not self.errors)):
|
||||
self.extractMetadata(self.tree)
|
||||
except Exception as e:
|
||||
print "PARSE ERROR: " + self.sourcepath
|
||||
print("PARSE ERROR: " + self.sourcepath)
|
||||
e.W3CTestLibErrorLocation = self.sourcepath
|
||||
self.errors = [str(e)]
|
||||
self.encoding = 'utf-8'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue