diff options
author | Barry Warsaw <barry@python.org> | 2001-10-04 17:05:11 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-10-04 17:05:11 +0000 |
commit | e968ead1dd80fd7fb97cd273626b530996ea0c7b (patch) | |
tree | 986c2f9398dfb612c92f1b20c14702c9aa7390ad /Lib/email/Utils.py | |
parent | a68ca35a8bc56d572ac6ab343ce6359bbd3ab5cc (diff) | |
download | cpython-git-e968ead1dd80fd7fb97cd273626b530996ea0c7b.tar.gz |
Give me back my page breaks.
Diffstat (limited to 'Lib/email/Utils.py')
-rw-r--r-- | Lib/email/Utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py index e75dae1046..6bbf2d35cb 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': |