mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Make this module importable, this gets test___all__ to pass.
This commit is contained in:
parent
5b7e9d76f3
commit
c247e51e68
1 changed files with 1 additions and 1 deletions
|
|
@ -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(' ')] = '_'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue