Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d42225

Browse files
Fixed a type error introduced in issue #28992.
1 parent 3bfa1ed commit 3d42225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/email/_encoded_words.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
# regex based decoder.
6464
_q_byte_subber = functools.partial(re.compile(br'=([a-fA-F0-9]{2})').sub,
65-
lambda m: bytes.fromhex(m.group(1)))
65+
lambda m: bytes.fromhex(m.group(1).decode()))
6666

6767
def decode_q(encoded):
6868
encoded = encoded.replace(b'_', b' ')

0 commit comments

Comments
 (0)