Author: neal.norwitz
Date: Thu Aug 30 07:19:29 2007
New Revision: 57700

Modified:
   python/branches/py3k/Lib/email/quoprimime.py
Log:
Make this module importable, this gets test___all__ to pass.

Modified: python/branches/py3k/Lib/email/quoprimime.py
==============================================================================
--- python/branches/py3k/Lib/email/quoprimime.py        (original)
+++ python/branches/py3k/Lib/email/quoprimime.py        Thu Aug 30 07:19:29 2007
@@ -58,7 +58,7 @@
 _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(' ')] = '_'
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to