summaryrefslogtreecommitdiff
path: root/Lib/email/utils.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2007-08-31 03:04:26 +0000
committerBarry Warsaw <barry@python.org>2007-08-31 03:04:26 +0000
commit23733ffe433af44d73701e58c87135c4d68e3cd6 (patch)
tree3d039d9231eadb97eb43540d6d903009e7cc0517 /Lib/email/utils.py
parentbad6f707e017f0a64f682f0d6d7e55cbd0fe324c (diff)
downloadcpython-23733ffe433af44d73701e58c87135c4d68e3cd6.tar.gz
More email package fixes.
MIMEApplication() requires a bytes object for its _data, so fix the tests. We no longer need utils._identity() or utils._bdecode(). The former isn't used anywhere AFAICT (where's "make test's" lint? <wink>) and the latter is a kludge that is eliminated by base64.b64encode(). Current status: 5F/5E
Diffstat (limited to 'Lib/email/utils.py')
-rw-r--r--Lib/email/utils.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Lib/email/utils.py b/Lib/email/utils.py
index 5771209c1b..8747110ef8 100644
--- a/Lib/email/utils.py
+++ b/Lib/email/utils.py
@@ -55,22 +55,6 @@ escapesre = re.compile(r'[][\\()"]')
# Helpers
-def _identity(s):
- return s
-
-
-def _bdecode(s):
- # We can't quite use base64.encodestring() since it tacks on a "courtesy
- # newline". Blech!
- if not s:
- return s
- value = base64.decodestring(s)
- if not s.endswith('\n') and value.endswith('\n'):
- return value[:-1]
- return value
-
-
-
def formataddr(pair):
"""The inverse of parseaddr(), this takes a 2-tuple of the form
(realname, email_address) and returns the string value suitable