Update web-platform-tests to revision 06e520971307b41e2f2a0317a35d125bd9483263

This commit is contained in:
WPT Sync Bot 2020-11-24 08:22:14 +00:00
parent ec09417358
commit 465b88905c
83 changed files with 422 additions and 220 deletions

View file

@ -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"\\":