summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-30 05:19:29 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-30 05:19:29 (GMT)
commitc247e51e6822dbe9b2877a0d528736a68a818e8d (patch)
tree08f7d5a7124cabf4bce2e10e93948d54365c0f88 /Lib/email
parent5b7e9d76f39dbf63573519c178835f72e5a5027a (diff)
downloadcpython-c247e51e6822dbe9b2877a0d528736a68a818e8d.zip
cpython-c247e51e6822dbe9b2877a0d528736a68a818e8d.tar.gz
cpython-c247e51e6822dbe9b2877a0d528736a68a818e8d.tar.bz2
Make this module importable, this gets test___all__ to pass.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/quoprimime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/quoprimime.py b/Lib/email/quoprimime.py
index 01de769..1301e0b 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(' ')] = '_'