diff options
Diffstat (limited to 'Lib/email/quoprimime.py')
-rw-r--r-- | Lib/email/quoprimime.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/email/quoprimime.py b/Lib/email/quoprimime.py index ce624d9..dfd3ccb 100644 --- a/Lib/email/quoprimime.py +++ b/Lib/email/quoprimime.py @@ -55,7 +55,10 @@ EMPTYSTRING = '' # See also Charset.py MISC_LEN = 7 -HEADER_SAFE_BYTES = b'-!*+/ ' + bytes(ascii_letters) + bytes(digits) +HEADER_SAFE_BYTES = (b'-!*+/ ' + + ascii_letters.encode('raw-unicode-escape') + + digits.encode('raw-unicode-escape')) + BODY_SAFE_BYTES = (b' !"#$%&\'()*+,-./0123456789:;<>' b'?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`' b'abcdefghijklmnopqrstuvwxyz{|}~\t') |