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 5b7e9d7 commit c247e51Copy full SHA for c247e51
1 file changed
Lib/email/quoprimime.py
@@ -58,7 +58,7 @@
58
_QUOPRI_BODY_MAP = _QUOPRI_HEADER_MAP.copy()
59
60
# Safe header bytes which need no encoding.
61
-for c in b'-!*+/' + bytes(ascii_letters) + bytes(digits):
+for c in b'-!*+/' + bytes(ascii_letters, 'ascii') + bytes(digits, 'ascii'):
62
_QUOPRI_HEADER_MAP[c] = chr(c)
63
# Headers have one other special encoding; spaces become underscores.
64
_QUOPRI_HEADER_MAP[ord(' ')] = '_'
0 commit comments