mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fixed a type error introduced in issue #28992.
This commit is contained in:
parent
3bfa1ed74d
commit
3d42225e3d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue