mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 06e520971307b41e2f2a0317a35d125bd9483263
This commit is contained in:
parent
ec09417358
commit
465b88905c
83 changed files with 422 additions and 220 deletions
|
@ -5,6 +5,8 @@ from wptserve.utils import isomorphic_encode
|
|||
# As a convenience, CRLF newlines are left as is.
|
||||
|
||||
def escape_byte(byte):
|
||||
# Iterating over a 'bytes' type gives ints, so convert to bytes.
|
||||
byte = bytes([byte])
|
||||
if b"\0" <= byte <= b"\x1F" or byte >= b"\x7F":
|
||||
return b"\\x%02x" % ord(byte)
|
||||
if byte == b"\\":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue