Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bfa1ed commit 3d42225Copy full SHA for 3d42225
1 file changed
Lib/email/_encoded_words.py
@@ -62,7 +62,7 @@
62
63
# regex based decoder.
64
_q_byte_subber = functools.partial(re.compile(br'=([a-fA-F0-9]{2})').sub,
65
- lambda m: bytes.fromhex(m.group(1)))
+ lambda m: bytes.fromhex(m.group(1).decode()))
66
67
def decode_q(encoded):
68
encoded = encoded.replace(b'_', b' ')
0 commit comments