aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Message.py
diff options
context:
space:
mode:
authorbwarsaw <>2005-04-29 12:04:48 +0000
committerbwarsaw <>2005-04-29 12:04:48 +0000
commit744dbf5bef6e99eade83d1537d1b2305943278aa (patch)
treea9ef219ed6bb310af6aeafb6c71637d110e34b7c /Mailman/Message.py
parent1fa0a12636fcf0b29a80b89064e57b92ea8e7789 (diff)
downloadmailman2-744dbf5bef6e99eade83d1537d1b2305943278aa.tar.gz
mailman2-744dbf5bef6e99eade83d1537d1b2305943278aa.tar.xz
mailman2-744dbf5bef6e99eade83d1537d1b2305943278aa.zip
get_content_charset(): This is fixed in email-2.5.6 so remove it from here
because it's better not to have redundant code.
Diffstat (limited to '')
-rw-r--r--Mailman/Message.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py
index 6399a169..072953e2 100644
--- a/Mailman/Message.py
+++ b/Mailman/Message.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -188,24 +188,6 @@ class Message(email.Message.Message):
authors.append(address)
return authors
- def get_content_charset(self, failobj=None):
- """email.Message.Message.get_content_charset() should return failobj
- on error. Also, check if the returned charset is supported by the
- current running mailman instance.
- """
- # First, trap known error in super class get_content_charset().
- # This check will not needed if email package is updated.
- try:
- charset = email.Message.Message.get_content_charset(self, failobj)
- except (LookupError, UnicodeError, ValueError):
- return failobj
- # Check if charset is supported.
- try:
- unicode('x', charset)
- except (LookupError, ValueError, TypeError):
- return failobj
- return charset
-
class UserNotification(Message):