mirror of https://github.com/python/cpython
Fixed a type error introduced in issue #28992.
This commit is contained in:
parent
3bfa1ed74d
commit
3d42225e3d
|
@ -62,7 +62,7 @@ __all__ = ['decode_q',
|
|||
|
||||
# regex based decoder.
|
||||
_q_byte_subber = functools.partial(re.compile(br'=([a-fA-F0-9]{2})').sub,
|
||||
lambda m: bytes.fromhex(m.group(1)))
|
||||
lambda m: bytes.fromhex(m.group(1).decode()))
|
||||
|
||||
def decode_q(encoded):
|
||||
encoded = encoded.replace(b'_', b' ')
|
||||
|
|
Loading…
Reference in New Issue