summaryrefslogtreecommitdiff
path: root/Lib/email/quoprimime.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2007-08-30 14:28:55 +0000
committerBarry Warsaw <barry@python.org>2007-08-30 14:28:55 +0000
commit56a454089ff7afec6e49437d98a92d1be6f765e2 (patch)
treebf7a15e10eb3f029e4a10e6c060e81d1559c9d37 /Lib/email/quoprimime.py
parente9550c8fd6f2e2fe50b21cd20666334789995802 (diff)
downloadcpython-56a454089ff7afec6e49437d98a92d1be6f765e2.tar.gz
More email package related repairs. This fixes smtplib's import and use of
email.base64mime, but test_smtplib still has failures for me. They are timeout errors so think they're more related to my current wacky network setup than bugs remaining in the code related to the email package. This also r57693 that got clobbered with the sandbox sync, and fixes a couple of other minor problems that cropped up. I will kill the sandbox branch next. The email package now has 11F/11E.
Diffstat (limited to 'Lib/email/quoprimime.py')
-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 1301e0b78d..e59479cbc7 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, 'ascii') + bytes(digits, 'ascii'):
+for c in b'-!*+/' + ascii_letters.encode('ascii') + digits.encode('ascii'):
_QUOPRI_HEADER_MAP[c] = chr(c)
# Headers have one other special encoding; spaces become underscores.
_QUOPRI_HEADER_MAP[ord(' ')] = '_'