From 744dbf5bef6e99eade83d1537d1b2305943278aa Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Fri, 29 Apr 2005 12:04:48 +0000 Subject: 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. --- Mailman/Message.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'Mailman/Message.py') 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): -- cgit v1.2.3