Revision: 8213
http://svn.sourceforge.net/mailman/?rev=8213&view=rev
Author: tkikuchi
Date: 2007-05-09 13:54:30 -0700 (Wed, 09 May 2007)
Log Message:
-----------
base64 codec raises 'AssertionError'. This should not occur in normal case
but it looks like thare is a buggy MUA or spammer who declairs like so:
Content-Type: text/plain; charset=base64
:-(
Modified Paths:
--------------
branches/Release_2_1-maint/mailman/Mailman/Handlers/Scrubber.py
Modified: branches/Release_2_1-maint/mailman/Mailman/Handlers/Scrubber.py
===================================================================
--- branches/Release_2_1-maint/mailman/Mailman/Handlers/Scrubber.py
2007-05-09 03:08:58 UTC (rev 8212)
+++ branches/Release_2_1-maint/mailman/Mailman/Handlers/Scrubber.py
2007-05-09 20:54:30 UTC (rev 8213)
@@ -376,7 +376,7 @@
if partcharset and partcharset <> charset:
try:
t = unicode(t, partcharset, 'replace')
- except (UnicodeError, LookupError, ValueError):
+ except (UnicodeError, LookupError, ValueError, AssertionError):
# Replace funny characters. We use errors='replace' for
# both calls since the first replace will leave U+FFFD,
# which isn't ASCII encodeable.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org