summaryrefslogtreecommitdiffstats
path: root/Lib/email/Charset.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-05-23 15:15:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-05-23 15:15:30 (GMT)
commit8ac1495a6a1d18111a626cec0c7f2eb67df3edb3 (patch)
tree2d91993770d3a5b3f3668857983d9bf75276b14f /Lib/email/Charset.py
parentf655328483b2e237cc2f71c1c308eceb2f30f6fd (diff)
downloadcpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.zip
cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.tar.gz
cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/email/Charset.py')
-rw-r--r--Lib/email/Charset.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/email/Charset.py b/Lib/email/Charset.py
index 4874597..0de5f80 100644
--- a/Lib/email/Charset.py
+++ b/Lib/email/Charset.py
@@ -13,7 +13,7 @@ QP = 1 # Quoted-Printable
BASE64 = 2 # Base64
# In "=?charset?q?hello_world?=", the =?, ?q?, and ?= add up to 7
-MISC_LEN = 7
+MISC_LEN = 7
DEFAULT_CHARSET = 'us-ascii'
@@ -22,11 +22,11 @@ DEFAULT_CHARSET = 'us-ascii'
# Defaults
CHARSETS = {
# input header enc body enc output conv
- 'iso-8859-1': (QP, QP, None),
+ 'iso-8859-1': (QP, QP, None),
'iso-8859-2': (QP, QP, None),
'us-ascii': (None, None, None),
'big5': (BASE64, BASE64, None),
- 'gb2312': (BASE64, BASE64, None),
+ 'gb2312': (BASE64, BASE64, None),
'euc-jp': (BASE64, None, 'iso-2022-jp'),
'shift_jis': (BASE64, None, 'iso-2022-jp'),
'iso-2022-jp': (BASE64, None, None),
@@ -125,7 +125,7 @@ class Charset:
converting between character sets, given the availability of the
applicable codecs. Given an character set, it will do its best to provide
information on how to use that character set in an email.
-
+
Certain character sets must be encoded with quoted-printable or base64
when used in email headers or bodies. Certain character sets must be
converted outright, and are not allowed in email. Instances of this