Skip to content

Commit 81ae23a

Browse files
Update Lib/email/quoprimime.py
Co-authored-by: Adam Turner <[email protected]>
1 parent 8362a2e commit 81ae23a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Lib/email/quoprimime.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,7 @@ def decode(encoded, eol=NL):
279279
decodestring = decode
280280

281281

282-
_HEX_TO_CHAR = {}
283-
for i in range(256):
284-
key_lower = f"{i:02x}"
285-
char_val = chr(i)
286-
_HEX_TO_CHAR[key_lower] = char_val
282+
_HEX_TO_CHAR = {f'{i:02x}': chr(i) for i in range(256)}
287283

288284
# Header decoding is done a bit differently
289285
def header_decode(s):

0 commit comments

Comments
 (0)