Kaydet (Commit) c247e51e authored tarafından Neal Norwitz's avatar Neal Norwitz

Make this module importable, this gets test___all__ to pass.

üst 5b7e9d76
...@@ -58,7 +58,7 @@ _QUOPRI_HEADER_MAP = dict((c, '=%02X' % c) for c in range(256)) ...@@ -58,7 +58,7 @@ _QUOPRI_HEADER_MAP = dict((c, '=%02X' % c) for c in range(256))
_QUOPRI_BODY_MAP = _QUOPRI_HEADER_MAP.copy() _QUOPRI_BODY_MAP = _QUOPRI_HEADER_MAP.copy()
# Safe header bytes which need no encoding. # 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) _QUOPRI_HEADER_MAP[c] = chr(c)
# Headers have one other special encoding; spaces become underscores. # Headers have one other special encoding; spaces become underscores.
_QUOPRI_HEADER_MAP[ord(' ')] = '_' _QUOPRI_HEADER_MAP[ord(' ')] = '_'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment