diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-21 12:08:55 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-21 12:08:55 (GMT) |
commit | 3d42225e3d87fea830b43de781ca8cfa0dd0fcea (patch) | |
tree | 25e32045996541009a9804feea9ace89527e367f | |
parent | 3bfa1ed74d8bbdd2b811500fa2c6ad84c5f116df (diff) | |
download | cpython-3d42225e3d87fea830b43de781ca8cfa0dd0fcea.zip cpython-3d42225e3d87fea830b43de781ca8cfa0dd0fcea.tar.gz cpython-3d42225e3d87fea830b43de781ca8cfa0dd0fcea.tar.bz2 |
Fixed a type error introduced in issue #28992.
-rw-r--r-- | Lib/email/_encoded_words.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ __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' ') |