commit | 3d42225e3d87fea830b43de781ca8cfa0dd0fcea | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Wed Dec 21 14:08:55 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Wed Dec 21 14:08:55 2016 +0200 |
tree | 25e32045996541009a9804feea9ace89527e367f | |
parent | 3bfa1ed74d8bbdd2b811500fa2c6ad84c5f116df [diff] |
Fixed a type error introduced in issue #28992.
diff --git a/Lib/email/_encoded_words.py b/Lib/email/_encoded_words.py index 32a1fa2..c40ffa9 100644 --- a/Lib/email/_encoded_words.py +++ b/Lib/email/_encoded_words.py
@@ -62,7 +62,7 @@ # 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' ')