Fixed a type error introduced in issue #28992.

This commit is contained in:
Serhiy Storchaka 2016-12-21 14:08:55 +02:00
parent 3bfa1ed74d
commit 3d42225e3d
1 changed files with 1 additions and 1 deletions

View File

@ -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' ')