summaryrefslogtreecommitdiffstats
path: root/Lib/email/Utils.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-04 05:36:56 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-04 05:36:56 (GMT)
commit527e64fd68046cb6e2ff35afaf077160346d37ff (patch)
tree3cf41f7c2d1dcaabb1e36a89981820e2e4922800 /Lib/email/Utils.py
parent2f93e28a19e3f250e8c19f9f4334cfa76f5e3645 (diff)
downloadcpython-527e64fd68046cb6e2ff35afaf077160346d37ff.zip
cpython-527e64fd68046cb6e2ff35afaf077160346d37ff.tar.gz
cpython-527e64fd68046cb6e2ff35afaf077160346d37ff.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/email/Utils.py')
-rw-r--r--Lib/email/Utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py
index 6bbf2d3..e75dae1 100644
--- a/Lib/email/Utils.py
+++ b/Lib/email/Utils.py
@@ -21,7 +21,7 @@ COMMASPACE = ', '
UEMPTYSTRING = u''
-
+
# Helpers
def _identity(s):
@@ -42,7 +42,7 @@ def _bdecode(s):
return value
-
+
def getaddresses(fieldvalues):
"""Return a list of (REALNAME, EMAIL) for each fieldvalue."""
all = COMMASPACE.join(fieldvalues)
@@ -50,7 +50,7 @@ def getaddresses(fieldvalues):
return a.getaddrlist()
-
+
ecre = re.compile(r'''
=\? # literal =?
(?P<charset>[^?]*?) # non-greedy up to the next ? is the charset
@@ -92,7 +92,7 @@ def decode(s):
return UEMPTYSTRING.join(rtn)
-
+
def encode(s, charset='iso-8859-1', encoding='q'):
"""Encode a string according to RFC 2047."""
if encoding.lower() == 'q':