Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29969

Modified Files:
      Tag: Release_2_1-maint
        Message.py 
Log Message:
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.


Index: Message.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Message.py,v
retrieving revision 2.25.2.4
retrieving revision 2.25.2.5
diff -u -d -r2.25.2.4 -r2.25.2.5
--- Message.py  25 Apr 2005 04:48:02 -0000      2.25.2.4
+++ Message.py  29 Apr 2005 12:04:48 -0000      2.25.2.5
@@ -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 @@
             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):

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to