From: Neal Norwitz Date: Thu, 30 Aug 2007 05:19:29 +0000 (+0000) Subject: Make this module importable, this gets test___all__ to pass. X-Git-Tag: v3.0a1~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c247e51e6822dbe9b2877a0d528736a68a818e8d;p=python Make this module importable, this gets test___all__ to pass. --- diff --git a/Lib/email/quoprimime.py b/Lib/email/quoprimime.py index 01de769e57..1301e0b78d 100644 --- a/Lib/email/quoprimime.py +++ b/Lib/email/quoprimime.py @@ -58,7 +58,7 @@ _QUOPRI_HEADER_MAP = dict((c, '=%02X' % c) for c in range(256)) _QUOPRI_BODY_MAP = _QUOPRI_HEADER_MAP.copy() # Safe header bytes which need no encoding. -for c in b'-!*+/' + bytes(ascii_letters) + bytes(digits): +for c in b'-!*+/' + bytes(ascii_letters, 'ascii') + bytes(digits, 'ascii'): _QUOPRI_HEADER_MAP[c] = chr(c) # Headers have one other special encoding; spaces become underscores. _QUOPRI_HEADER_MAP[ord(' ')] = '_'