mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Revert wptrunner 496353104e7ee0969e316c12caf3dc2988efb8e8
This commit is contained in:
parent
d6318c8ea5
commit
a9c2dda299
1 changed files with 3 additions and 6 deletions
|
@ -16,8 +16,6 @@
|
|||
|
||||
# TODO: keep comments in the tree
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import types
|
||||
from cStringIO import StringIO
|
||||
|
||||
|
@ -50,9 +48,8 @@ atoms = {"True": True,
|
|||
"False": False,
|
||||
"Reset": object()}
|
||||
|
||||
def decode(s):
|
||||
assert isinstance(s, unicode)
|
||||
return s
|
||||
def decode(byte_str):
|
||||
return byte_str.decode("utf8")
|
||||
|
||||
|
||||
def precedence(operator_node):
|
||||
|
@ -477,7 +474,7 @@ class Tokenizer(object):
|
|||
value += self.escape_value(c)
|
||||
self.consume()
|
||||
|
||||
return unichr(value)
|
||||
return unichr(value).encode("utf8")
|
||||
|
||||
def escape_value(self, c):
|
||||
if '0' <= c <= '9':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue