summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-10-14 15:06:55 (GMT)
committerBarry Warsaw <barry@python.org>2002-10-14 15:06:55 (GMT)
commit7cd724049f3d6c741dc3d7d3b652ba9a83481e5d (patch)
tree47a5fd109eef3824e4773523f09455466e770211 /Lib/email
parentf834ecbba5102b62469d0c421b1c4d9a2a9ad3de (diff)
downloadcpython-7cd724049f3d6c741dc3d7d3b652ba9a83481e5d.zip
cpython-7cd724049f3d6c741dc3d7d3b652ba9a83481e5d.tar.gz
cpython-7cd724049f3d6c741dc3d7d3b652ba9a83481e5d.tar.bz2
CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data for
which we know nothing else.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/Charset.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/email/Charset.py b/Lib/email/Charset.py
index b476065..b852245 100644
--- a/Lib/email/Charset.py
+++ b/Lib/email/Charset.py
@@ -43,6 +43,8 @@ CHARSETS = {
'iso-2022-jp': (BASE64, None, None),
'koi8-r': (BASE64, BASE64, None),
'utf-8': (SHORTEST, BASE64, 'utf-8'),
+ # We're making this one up to represent raw unencoded 8-bit
+ '8bit': (None, BASE64, 'utf-8'),
}
# Aliases for other commonly-used names for character sets. Map