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

Skip to content

Commit c247e51

Browse files
committed
Make this module importable, this gets test___all__ to pass.
1 parent 5b7e9d7 commit c247e51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/email/quoprimime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
_QUOPRI_BODY_MAP = _QUOPRI_HEADER_MAP.copy()
5959

6060
# Safe header bytes which need no encoding.
61-
for c in b'-!*+/' + bytes(ascii_letters) + bytes(digits):
61+
for c in b'-!*+/' + bytes(ascii_letters, 'ascii') + bytes(digits, 'ascii'):
6262
_QUOPRI_HEADER_MAP[c] = chr(c)
6363
# Headers have one other special encoding; spaces become underscores.
6464
_QUOPRI_HEADER_MAP[ord(' ')] = '_'

0 commit comments

Comments
 (0)